de.jreality.scene.data
Class ByteBufferStorage
java.lang.Object
de.jreality.scene.data.StorageModel
de.jreality.scene.data.ByteBufferStorage
- All Implemented Interfaces:
- java.io.Serializable
public class ByteBufferStorage
- extends StorageModel
Storage Model for ByteBufferList
which uses a
ByteBuffer
as backend.
- See Also:
- Serialized Form
Method Summary |
DataList |
createReadOnly(java.lang.Object v,
int start,
int length)
Create a data list using this data model. |
int |
getLength(java.lang.Object data)
Return the length of a data item in the format of this
storage model. |
DataItem |
item(java.lang.Object data,
int i)
|
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MODEL
public static final ByteBufferStorage MODEL
createReadOnly
public DataList createReadOnly(java.lang.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(java.lang.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(java.lang.Object data,
int i)
- Specified by:
item
in class StorageModel