public class FastFloatBuffer
extends java.lang.Object
float
buffer.Constructor and Description |
---|
FastFloatBuffer()
Creates a new
float buffer. |
FastFloatBuffer(int size)
Creates a new
float buffer, with a buffer capacity of
the specified size. |
Modifier and Type | Method and Description |
---|---|
FastFloatBuffer |
append(FastFloatBuffer buff)
Appends another fast buffer to this one.
|
void |
append(float element)
Appends single
float to buffer. |
FastFloatBuffer |
append(float[] array)
Appends
float array to buffer. |
FastFloatBuffer |
append(float[] array,
int off,
int len)
Appends
float array to buffer. |
void |
clear()
Resets the buffer content.
|
float |
get(int index)
Returns
float element at given index. |
boolean |
isEmpty()
Tests if this buffer has no elements.
|
int |
size()
Returns buffer size.
|
float[] |
toArray()
Creates
float array from buffered content. |
float[] |
toArray(int start,
int len)
Creates
float subarray from buffered content. |
public FastFloatBuffer()
float
buffer. The buffer capacity is
initially 64 floats, though its size increases if necessary.public FastFloatBuffer(int size)
float
buffer, with a buffer capacity of
the specified size.size
- the initial size.java.lang.IllegalArgumentException
- if size is negative.public void append(float element)
float
to buffer.public FastFloatBuffer append(float[] array, int off, int len)
float
array to buffer.public FastFloatBuffer append(float[] array)
float
array to buffer.public FastFloatBuffer append(FastFloatBuffer buff)
public int size()
public boolean isEmpty()
public void clear()
public float[] toArray()
float
array from buffered content.public float[] toArray(int start, int len)
float
subarray from buffered content.public float get(int index)
float
element at given index.Copyright © 2003-present Jodd Team