|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlListElement
com.neeve.sto.StoField
com.neeve.sto.StoVariableLengthField<int[]>
com.neeve.sto.StoIntArrayField
public final class StoIntArrayField
An STO field that holds an array of integer values.
TODO
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.neeve.sto.StoField |
---|
StoField.Type |
Field Summary |
---|
Fields inherited from class com.neeve.util.UtlListElement |
---|
count, head, next, prev |
Method Summary | |
---|---|
static StoIntArrayField |
create(ByteBuffer buffer,
int bufferOffset)
Create an STO integer array field from its serialized form. |
static StoIntArrayField |
create(String name)
Create an STO integer array field. |
static int[] |
get(ByteBuffer buffer,
int offset)
Deserialize an integer array. |
static int |
getSerializedLength(ByteBuffer buffer,
int offset)
Get the length of a serialized integer array. |
static int |
getSerializedLength(int[] val)
Get the serialized length of an integer array. |
static void |
put(ByteBuffer buffer,
int offset,
int[] val)
Serialize an integer array. |
Methods inherited from class com.neeve.sto.StoVariableLengthField |
---|
getValue, isVariableLength, reset, setValue |
Methods inherited from class com.neeve.sto.StoField |
---|
changeBackingBuffer, clearBackingBuffer, clone, contentsEquals, getBackingBuffer, getHeader, getLength, getName, getSerializedLength, getType, getVersion, isNamed, setBackingBuffer, shiftForHeader, sync, toString |
Methods inherited from class com.neeve.util.UtlListElement |
---|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static StoIntArrayField create(String name)
name
- The name of the field. A value of null will cause an unnamed
field to be created.public static StoIntArrayField create(ByteBuffer buffer, int bufferOffset)
buffer
- The buffer to deserialize the field from.bufferOffset
- The offset into the supplied buffer from where to
deserialize the field.public static int getSerializedLength(ByteBuffer buffer, int offset)
buffer
- The buffer containing the serialized array.offset
- The offset into the buffer where the array is serialized.
This method leaves the buffer markers intact.
public static int getSerializedLength(int[] val)
val
- The integer array whose serialized length is to be returned.public static void put(ByteBuffer buffer, int offset, int[] val)
buffer
- The buffer in which to serialize the array.offset
- The offset into the buffer at which point to serialize
the array.
This method leaves the buffer markers intact.
public static int[] get(ByteBuffer buffer, int offset)
buffer
- The byte array from which to deserialize the value.offset
- The offset into the array from which to deserialize the
array.
This method leaves the buffer markers intact.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |