|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dex.Leb128
public final class Leb128
Reads and writes DWARFv3 LEB 128 signed and unsigned integers. See DWARF v3 section 7.6.
| Method Summary | |
|---|---|
static int |
readSignedLeb128(ByteInput in)
Reads an signed integer from in. |
static int |
readUnsignedLeb128(ByteInput in)
Reads an unsigned integer from in. |
static int |
signedLeb128Size(int value)
Gets the number of bytes in the signed LEB128 encoding of the given value. |
static int |
unsignedLeb128Size(int value)
Gets the number of bytes in the unsigned LEB128 encoding of the given value. |
static void |
writeSignedLeb128(ByteOutput out,
int value)
Writes value as a signed integer to out, starting at
offset. |
static void |
writeUnsignedLeb128(ByteOutput out,
int value)
Writes value as an unsigned integer to out, starting at
offset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int unsignedLeb128Size(int value)
value - the value in question
public static int signedLeb128Size(int value)
value - the value in question
public static int readSignedLeb128(ByteInput in)
in.
public static int readUnsignedLeb128(ByteInput in)
in.
public static void writeUnsignedLeb128(ByteOutput out,
int value)
value as an unsigned integer to out, starting at
offset. Returns the number of bytes written.
public static void writeSignedLeb128(ByteOutput out,
int value)
value as a signed integer to out, starting at
offset. Returns the number of bytes written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||