Package org.jf.dexlib2.dexbacked
Class DexReader<T extends DexBuffer>
java.lang.Object
org.jf.dexlib2.dexbacked.DexReader<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidmoveRelative(int i) intintintintpeekStringLength(int utf16Length) intprivate intpeekUleb128Size(boolean allowLarge) intintReads a "big" uleb128 that can legitimately be > 2^31.intreadByte()intreadByte(int offset) intreadInt()intreadInt(int offset) intReads a "large" uleb128.longreadLong()longreadLong(int offset) intintintreadShort(int offset) intreadSizedInt(int bytes) longreadSizedLong(int bytes) intreadSizedRightExtendedInt(int bytes) longreadSizedRightExtendedLong(int bytes) intreadSizedSmallUint(int bytes) intintintreadSmallUint(int offset) intreadString(int utf16Length) intintreadUbyte(int offset) private intreadUleb128(boolean allowLarge) intintreadUshort(int offset) voidsetOffset(int offset) voidskipByte()void
-
Field Details
-
dexBuf
-
offset
private int offset
-
-
Constructor Details
-
DexReader
-
-
Method Details
-
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
readSleb128
public int readSleb128() -
peekSleb128Size
public int peekSleb128Size() -
readSmallUleb128
public int readSmallUleb128() -
peekSmallUleb128Size
public int peekSmallUleb128Size() -
readUleb128
private int readUleb128(boolean allowLarge) -
peekUleb128Size
private int peekUleb128Size(boolean allowLarge) -
readLargeUleb128
public int readLargeUleb128()Reads a "large" uleb128. That is, one that may legitimately be greater than a signed int. The value is returned as if it were signed. i.e. a value of 0xFFFFFFFF would be returned as -1. It is up to the caller to handle the value appropriately. -
readBigUleb128
public int readBigUleb128()Reads a "big" uleb128 that can legitimately be > 2^31. The value is returned as a signed integer, with the expected semantics of re-interpreting an unsigned value as a signed value.- Returns:
- The unsigned value, reinterpreted as a signed int
-
peekBigUleb128Size
public int peekBigUleb128Size() -
skipUleb128
public void skipUleb128() -
readSmallUint
public int readSmallUint() -
readOptionalUint
public int readOptionalUint() -
peekUshort
public int peekUshort() -
readUshort
public int readUshort() -
peekUbyte
public int peekUbyte() -
readUbyte
public int readUbyte() -
readLong
public long readLong() -
readInt
public int readInt() -
readShort
public int readShort() -
readByte
public int readByte() -
skipByte
public void skipByte() -
moveRelative
public void moveRelative(int i) -
readSmallUint
public int readSmallUint(int offset) -
readUshort
public int readUshort(int offset) -
readUbyte
public int readUbyte(int offset) -
readLong
public long readLong(int offset) -
readInt
public int readInt(int offset) -
readShort
public int readShort(int offset) -
readByte
public int readByte(int offset) -
readSizedInt
public int readSizedInt(int bytes) -
readSizedSmallUint
public int readSizedSmallUint(int bytes) -
readSizedRightExtendedInt
public int readSizedRightExtendedInt(int bytes) -
readSizedRightExtendedLong
public long readSizedRightExtendedLong(int bytes) -
readSizedLong
public long readSizedLong(int bytes) -
readString
-
peekStringLength
public int peekStringLength(int utf16Length)
-