Package com.android.dex
Class EncodedValueCodec
- java.lang.Object
-
- com.android.dex.EncodedValueCodec
-
public final class EncodedValueCodec extends Object
Read and writeencoded_valueprimitives.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
writeSignedIntegralValue
public static void writeSignedIntegralValue(ByteOutput out, int type, long value)
Writes a signed integral toout.
-
writeUnsignedIntegralValue
public static void writeUnsignedIntegralValue(ByteOutput out, int type, long value)
Writes an unsigned integral toout.
-
writeRightZeroExtendedValue
public static void writeRightZeroExtendedValue(ByteOutput out, int type, long value)
Writes a right-zero-extended value toout.
-
readSignedInt
public static int readSignedInt(ByteInput in, int zwidth)
Read a signed integer.- Parameters:
zwidth- byte count minus one
-
readUnsignedInt
public static int readUnsignedInt(ByteInput in, int zwidth, boolean fillOnRight)
Read an unsigned integer.- Parameters:
zwidth- byte count minus onefillOnRight- true to zero fill on the right; false on the left
-
readSignedLong
public static long readSignedLong(ByteInput in, int zwidth)
Read a signed long.- Parameters:
zwidth- byte count minus one
-
readUnsignedLong
public static long readUnsignedLong(ByteInput in, int zwidth, boolean fillOnRight)
Read an unsigned long.- Parameters:
zwidth- byte count minus onefillOnRight- true to zero fill on the right; false on the left
-
-