Class EncodedValueCodec
java.lang.Object
com.android.dex.EncodedValueCodec
Read and write
encoded_value primitives.-
Method Summary
Modifier and TypeMethodDescriptionstatic intreadSignedInt(ByteInput in, int zwidth) Read a signed integer.static longreadSignedLong(ByteInput in, int zwidth) Read a signed long.static intreadUnsignedInt(ByteInput in, int zwidth, boolean fillOnRight) Read an unsigned integer.static longreadUnsignedLong(ByteInput in, int zwidth, boolean fillOnRight) Read an unsigned long.static voidwriteRightZeroExtendedValue(ByteOutput out, int type, long value) Writes a right-zero-extended value toout.static voidwriteSignedIntegralValue(ByteOutput out, int type, long value) Writes a signed integral toout.static voidwriteUnsignedIntegralValue(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
-