public interface LongAccessor extends Field
Field
which has long accessors.
Modifier and Type | Method and Description |
---|---|
long |
getLong(byte[] buffer)
Answer a long from the given byte array buffer,
at the offset of this field.
|
long |
getLong(byte[] buffer,
int bufOffset)
Answer a long from the given byte array buffer,
at the bufOffset + offset of this field.
|
boolean |
isSigned()
Answer whether the field is signed
|
void |
putLong(long value,
byte[] buffer)
Put a long into the given byte array buffer,
at the offset of this field.
|
void |
putLong(long value,
byte[] buffer,
int bufOffset)
Put a long into the given byte array buffer,
at the bufOffset + offset of this field.
|
getByteLength, getOffset, setOffset
long getLong(byte[] buffer)
buffer
- the byte arraylong getLong(byte[] buffer, int bufOffset)
buffer
- the byte arraybufOffset
- the additional offset into the byte arrayvoid putLong(long value, byte[] buffer) throws java.lang.IllegalArgumentException
value
- the signed long valuebuffer
- the byte arrayjava.lang.IllegalArgumentException
- if the value is out of rangevoid putLong(long value, byte[] buffer, int bufOffset) throws java.lang.IllegalArgumentException
value
- the signed long valuebuffer
- the byte arraybufOffset
- the additional offset into the byte arrayjava.lang.IllegalArgumentException
- if the value is out of rangeboolean isSigned()