de.jreality.scene.data
Class ByteBufferStorage

java.lang.Object
  extended by de.jreality.scene.data.StorageModel
      extended by 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

Field Summary
static ByteBufferStorage MODEL
           
 
Fields inherited from class de.jreality.scene.data.StorageModel
DOUBLE_ARRAY, DOUBLE_ARRAY_ARRAY, DOUBLE2_INLINED, DOUBLE3_ARRAY, DOUBLE3_INLINED, INT_ARRAY, INT_ARRAY_ARRAY, STRING_ARRAY, STRING_ARRAY_ARRAY
 
Method Summary
 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)
           
 
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
 

Field Detail

MODEL

public static final ByteBufferStorage MODEL
Method Detail

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 wrap
start - start offset inside v
length - 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