public class PackedUnsignedIntP2Field extends PackedUnsignedIntField
| Constructor and Description |
|---|
PackedUnsignedIntP2Field(int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInt(byte[] buffer)
Answer a int from the given byte array buffer,
at the offset of this field.
|
int |
getInt(byte[] buffer,
int bufOffset)
Answer a int from the given byte array buffer,
at the bufOffset + offset of this field.
|
void |
putInt(int value,
byte[] buffer)
Put a int into the given byte array buffer,
at the offset of this field.
|
void |
putInt(int value,
byte[] buffer,
int bufOffset)
Put a int into the given byte array buffer,
at the bufOffset + offset of this field.
|
equals, getByteLength, getOffset, getPrecision, isSigned, setOffsetpublic int getInt(byte[] buffer,
int bufOffset)
PackedDecimalAsIntFieldgetInt in interface IntAccessorgetInt in class PackedUnsignedIntFieldbuffer - the byte arraybufOffset - the additional offset into the byte arraypublic int getInt(byte[] buffer)
PackedDecimalAsIntFieldgetInt in interface IntAccessorgetInt in class PackedUnsignedIntFieldbuffer - the byte arraypublic void putInt(int value,
byte[] buffer,
int bufOffset)
throws java.lang.IllegalArgumentException
PackedDecimalAsIntFieldputInt in interface IntAccessorputInt in class PackedUnsignedIntFieldvalue - the signed int valuebuffer - the byte arraybufOffset - the additional offset into the byte arrayjava.lang.IllegalArgumentException - if the value is out of rangepublic void putInt(int value,
byte[] buffer)
throws java.lang.IllegalArgumentException
PackedDecimalAsIntFieldputInt in interface IntAccessorputInt in class PackedUnsignedIntFieldvalue - the signed int valuebuffer - the byte arrayjava.lang.IllegalArgumentException - if the value is out of range