public class FloatBuffer extends DataBuffer
| Modifier and Type | Field and Description |
|---|---|
float[] |
array |
arrayObject, capacity, end, growthCap, growthMin, start| Constructor and Description |
|---|
FloatBuffer()
Creates an empty float buffer.
|
FloatBuffer(DoubleBuffer doubles) |
FloatBuffer(int size)
Creates a float buffer of the given size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float value) |
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property.
|
float[] |
toFloatArray() |
append, clear, clone, copy, copyTo, getSize, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, setToMatch, subsection, tidy, toStringpublic FloatBuffer()
public FloatBuffer(int size)
public FloatBuffer(DoubleBuffer doubles)
public void newArray(int size)
DataBuffernewArray in class DataBufferpublic float[] toFloatArray()
public void add(float value)