public final class EncodedValueCodec extends Object
encoded_value
primitives.Modifier and Type | Method and Description |
---|---|
static 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 to
out . |
static void |
writeSignedIntegralValue(ByteOutput out,
int type,
long value)
Writes a signed integral to
out . |
static void |
writeUnsignedIntegralValue(ByteOutput out,
int type,
long value)
Writes an unsigned integral to
out . |
public static void writeSignedIntegralValue(ByteOutput out, int type, long value)
out
.public static void writeUnsignedIntegralValue(ByteOutput out, int type, long value)
out
.public static void writeRightZeroExtendedValue(ByteOutput out, int type, long value)
out
.public static int readSignedInt(ByteInput in, int zwidth)
zwidth
- byte count minus onepublic static int readUnsignedInt(ByteInput in, int zwidth, boolean fillOnRight)
zwidth
- byte count minus onefillOnRight
- true to zero fill on the right; false on the leftpublic static long readSignedLong(ByteInput in, int zwidth)
zwidth
- byte count minus onepublic static long readUnsignedLong(ByteInput in, int zwidth, boolean fillOnRight)
zwidth
- byte count minus onefillOnRight
- true to zero fill on the right; false on the leftCopyright © 2016. All Rights Reserved.