Example usage for Java java.nio FloatBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
FloatBuffer | allocate(int capacity) Creates a float buffer based on a newly allocated float array. |
float[] | array() Returns the float array which this buffer is based on, if there is one. |
int | arrayOffset() Returns the offset of the float array which this buffer is based on, if there is one. |
FloatBuffer | asReadOnlyBuffer() Returns a read-only buffer that shares its content with this buffer. |
int | capacity() Returns the capacity of this buffer. |
Buffer | clear() Clears this buffer. |
FloatBuffer | compact() Compacts this float buffer. |
int | compareTo(FloatBuffer otherBuffer) Compare the remaining floats of this buffer to another float buffer's remaining floats. |
FloatBuffer | duplicate() Returns a duplicated buffer that shares its content with this buffer. |
boolean | equals(Object other) Checks whether this float buffer is equal to another object. |
Buffer | flip() Flips this buffer. |
float | get() Returns the float at the current position and increases the position by 1. |
FloatBuffer | get(float[] dest) Reads floats from the current position into the specified float array and increases the position by the number of floats read. |
float | get(int index) Returns a float at the specified index; the position is not changed. |
FloatBuffer | get(float[] dest, int off, int len) Reads floats from the current position into the specified float array, starting from the specified offset, and increases the position by the number of floats read. |
boolean | hasArray() Indicates whether this buffer is based on a float array and is read/write. |
int | hashCode() Returns a hash code value for the object. |
boolean | hasRemaining() Indicates if there are elements remaining in this buffer, that is if position < limit . |
boolean | isDirect() Indicates whether this buffer is direct. |
int | limit() Returns the limit of this buffer. |
Buffer | mark() Marks the current position, so that the position may return to this point later by calling reset() . |
ByteOrder | order() Returns the byte order used by this buffer when converting floats from/to bytes. |
int | position() Returns the position of this buffer. |
Buffer | position(int newPosition) Sets the position of this buffer. |
FloatBuffer | put(float f) Writes the given float to the current position and increases the position by 1. |
FloatBuffer | put(float[] src) Writes floats from the given float array to the current position and increases the position by the number of floats written. |
FloatBuffer | put(FloatBuffer src) Writes all the remaining floats of the src float buffer to this buffer's current position, and increases both buffers' position by the number of floats copied. |
FloatBuffer | put(int index, float f) Writes a float to the specified index of this buffer; the position is not changed. |
FloatBuffer | put(float[] src, int off, int len) Writes floats from the given float array, starting from the specified offset, to the current position and increases the position by the number of floats written. |
int | remaining() Returns the number of remaining elements in this buffer, that is limit - position . |
Buffer | reset() Resets the position of this buffer to the mark . |
Buffer | rewind() Rewinds this buffer. |
FloatBuffer | slice() Returns a sliced buffer that shares its content with this buffer. |
String | toString() Returns a string representing the state of this float buffer. |
FloatBuffer | wrap(float[] array) Creates a new float buffer by wrapping the given float array. |
FloatBuffer | wrap(float[] array, int start, int len) Creates a new float buffer by wrapping the given float array. |