public class CompactFloatArray extends CompactArray<java.lang.Float> implements Savable
array, index, indexPool
Constructor and Description |
---|
CompactFloatArray()
Creates a compact vector array
|
CompactFloatArray(float[] dataArray,
int[] index)
creates a compact vector array
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Float |
deserialize(int i,
java.lang.Float store)
deserialize object
|
void |
fill(int startIndex,
float[] store) |
protected java.lang.Class<java.lang.Float> |
getElementClass() |
protected int |
getTupleSize()
serialized size of one object element
|
void |
read(JmeImporter im) |
protected void |
serialize(int i,
java.lang.Float data)
serialize object
|
void |
write(JmeExporter ex) |
add, clone, cloneFields, ensureCapacity, freeze, get, getCompactIndex, getCompactObjectSize, getIndex, getSerializedData, getSerializedSize, getTotalObjectSize, jmeClone, serialize, set, setInvalid, toObjectArray
public CompactFloatArray()
public CompactFloatArray(float[] dataArray, int[] index)
dataArray
- the data arrayindex
- the indicesprotected final int getTupleSize()
CompactArray
getTupleSize
in class CompactArray<java.lang.Float>
protected final java.lang.Class<java.lang.Float> getElementClass()
getElementClass
in class CompactArray<java.lang.Float>
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public void fill(int startIndex, float[] store)
protected void serialize(int i, java.lang.Float data)
CompactArray
serialize
in class CompactArray<java.lang.Float>
i
- compacted object indexprotected java.lang.Float deserialize(int i, java.lang.Float store)
CompactArray
deserialize
in class CompactArray<java.lang.Float>
i
- compacted object index