Package com.android.dex
Class EncodedValueCodec
java.lang.Object
com.android.dex.EncodedValueCodec
Read and write
encoded_value
primitives.-
Method Summary
Modifier and TypeMethodDescriptionstatic int
readSignedInt
(ByteInput in, int zwidth) Read a signed integer.static long
readSignedLong
(ByteInput in, int zwidth) Read a signed long.static int
readUnsignedInt
(ByteInput in, int zwidth, boolean fillOnRight) Read an unsigned integer.static long
readUnsignedLong
(ByteInput in, int zwidth, boolean fillOnRight) Read an unsigned long.static void
writeRightZeroExtendedValue
(ByteOutput out, int type, long value) Writes a right-zero-extended value toout
.static void
writeSignedIntegralValue
(ByteOutput out, int type, long value) Writes a signed integral toout
.static void
writeUnsignedIntegralValue
(ByteOutput out, int type, long value) Writes an unsigned integral toout
.
-
Method Details
-
writeSignedIntegralValue
Writes a signed integral toout
. -
writeUnsignedIntegralValue
Writes an unsigned integral toout
. -
writeRightZeroExtendedValue
Writes a right-zero-extended value toout
. -
readSignedInt
Read a signed integer.- Parameters:
zwidth
- byte count minus one
-
readUnsignedInt
Read an unsigned integer.- Parameters:
zwidth
- byte count minus onefillOnRight
- true to zero fill on the right; false on the left
-
readSignedLong
Read a signed long.- Parameters:
zwidth
- byte count minus one
-
readUnsignedLong
Read an unsigned long.- Parameters:
zwidth
- byte count minus onefillOnRight
- true to zero fill on the right; false on the left
-