de.jreality.scene.data
Class ByteBufferStorage
java.lang.Object
de.jreality.scene.data.StorageModel
de.jreality.scene.data.ByteBufferStorage
- All Implemented Interfaces:
- Serializable
public class ByteBufferStorage
- extends StorageModel
Storage Model for ByteBufferList
which uses a
ByteBuffer
as backend.
- See Also:
- Serialized Form
Methods inherited from class de.jreality.scene.data.StorageModel |
array, array, checkFormat, createReadOnly, createWritableDataList, getAsDoubleArray, getAsIntArray, getAsStringArray, getComponentModel, getDimensions, getDimensions, getNumberOfDimensions, inlined, isArray, objectType, primitive, toDoubleArray, toDoubleArrayArray, toIntArray, toIntArrayArray, toString, toStringArray, toStringArrayArray |
MODEL
public static final ByteBufferStorage MODEL
createReadOnly
public DataList createReadOnly(Object v,
int start,
int length)
- Description copied from class:
StorageModel
- Create a
data list
using this data model.
Certain storage models will return specialized data lists,
e.g. DoubleArray
or IntArray
.
- Overrides:
createReadOnly
in class StorageModel
- Parameters:
v
- the object to wrapstart
- start offset inside vlength
- the number of items
getLength
public int getLength(Object data)
- Description copied from class:
StorageModel
- Return the length of a data item in the format of this
storage model.
- Specified by:
getLength
in class StorageModel
item
public DataItem item(Object data,
int i)
- Specified by:
item
in class StorageModel