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