Class Dex.Section

java.lang.Object
com.android.dex.Dex.Section
All Implemented Interfaces:
ByteInput, ByteOutput
Enclosing class:
Dex

public final class Dex.Section extends Object implements ByteInput, ByteOutput
  • Method Details

    • getPosition

      public int getPosition()
    • readInt

      public int readInt()
    • readShort

      public short readShort()
    • readUnsignedShort

      public int readUnsignedShort()
    • readByte

      public byte readByte()
      Description copied from interface: ByteInput
      Returns a byte.
      Specified by:
      readByte in interface ByteInput
    • readByteArray

      public byte[] readByteArray(int length)
    • readShortArray

      public short[] readShortArray(int length)
    • readUleb128

      public int readUleb128()
    • readUleb128p1

      public int readUleb128p1()
    • readSleb128

      public int readSleb128()
    • writeUleb128p1

      public void writeUleb128p1(int i)
    • readTypeList

      public TypeList readTypeList()
    • readString

      public String readString()
    • readFieldId

      public FieldId readFieldId()
    • readMethodId

      public MethodId readMethodId()
    • readProtoId

      public ProtoId readProtoId()
    • readCallSiteId

      public CallSiteId readCallSiteId()
    • readMethodHandle

      public MethodHandle readMethodHandle()
    • readClassDef

      public ClassDef readClassDef()
    • readAnnotation

      public Annotation readAnnotation()
    • readEncodedArray

      public EncodedValue readEncodedArray()
    • skip

      public void skip(int count)
    • alignToFourBytes

      public void alignToFourBytes()
      Skips bytes until the position is aligned to a multiple of 4.
    • alignToFourBytesWithZeroFill

      public void alignToFourBytesWithZeroFill()
      Writes 0x00 until the position is aligned to a multiple of 4.
    • assertFourByteAligned

      public void assertFourByteAligned()
    • write

      public void write(byte[] bytes)
    • writeByte

      public void writeByte(int b)
      Description copied from interface: ByteOutput
      Writes a byte.
      Specified by:
      writeByte in interface ByteOutput
    • writeShort

      public void writeShort(short i)
    • writeUnsignedShort

      public void writeUnsignedShort(int i)
    • write

      public void write(short[] shorts)
    • writeInt

      public void writeInt(int i)
    • writeUleb128

      public void writeUleb128(int i)
    • writeSleb128

      public void writeSleb128(int i)
    • writeStringData

      public void writeStringData(String value)
    • writeTypeList

      public void writeTypeList(TypeList typeList)
    • used

      public int used()
      Returns the number of bytes used by this section.