public class ByteBufferStorage extends StorageModel
ByteBufferList
which uses a
ByteBuffer
as backend.Modifier and Type | Field and Description |
---|---|
static ByteBufferStorage |
MODEL |
DOUBLE_ARRAY, DOUBLE_ARRAY_ARRAY, DOUBLE2_INLINED, DOUBLE3_ARRAY, DOUBLE3_INLINED, INT_ARRAY, INT_ARRAY_ARRAY, STRING_ARRAY, STRING_ARRAY_ARRAY
Modifier and Type | Method and Description |
---|---|
DataList |
createReadOnly(Object v,
int start,
int length)
Create a
data list using this data model. |
int |
getLength(Object data)
Return the length of a data item in the format of this
storage model.
|
DataItem |
item(Object data,
int i) |
array, array, checkFormat, createReadOnly, createWritableDataList, getAsDoubleArray, getAsIntArray, getAsStringArray, getComponentModel, getDimensions, getDimensions, getNumberOfDimensions, inlined, isArray, objectType, primitive, toDoubleArray, toDoubleArrayArray, toIntArray, toIntArrayArray, toString, toStringArray, toStringArrayArray
public static final ByteBufferStorage MODEL
public DataList createReadOnly(Object v, int start, int length)
StorageModel
data list
using this data model.
Certain storage models will return specialized data lists,
e.g. DoubleArray
or IntArray
.createReadOnly
in class StorageModel
v
- the object to wrapstart
- start offset inside vlength
- the number of itemspublic int getLength(Object data)
StorageModel
getLength
in class StorageModel
public DataItem item(Object data, int i)
item
in class StorageModel