com.partnersoft.v3x.data
Class FloatBuffer
java.lang.Object
com.partnersoft.v3x.data.GrowableArray
com.partnersoft.v3x.data.FloatBuffer
public class FloatBuffer
- extends GrowableArray
A fast float array buffer with public access to contents. Intended for fast
and unsafe operations.
|
Field Summary |
float[] |
array
|
|
Constructor Summary |
FloatBuffer()
Creates an empty float buffer. |
FloatBuffer(int size)
Creates a float buffer of the given size. |
|
Method Summary |
void |
add(float nother)
|
java.lang.String |
contentsToString()
|
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property. |
float[] |
toFloatArray()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
array
public float[] array
FloatBuffer
public FloatBuffer()
- Creates an empty float buffer. buffer is left null!
FloatBuffer
public FloatBuffer(int size)
- Creates a float buffer of the given size.
contentsToString
public java.lang.String contentsToString()
newArray
public void newArray(int size)
- Description copied from class:
GrowableArray
- Allocates a new, empty array of the given size and assign it to the
arrayObject property. It is assumed that subclasses will also set it to a
variable of the correct class (e.g. char[]) for ease of access as well.
Copying of existing contents is managed by this superclass.
- Specified by:
newArray in class GrowableArray
toFloatArray
public float[] toFloatArray()
add
public void add(float nother)