Uses of Class
java.nio.FloatBuffer
| Package | Description |
|---|---|
| java.nio |
Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
|
-
Uses of FloatBuffer in java.nio
Methods in java.nio that return FloatBuffer Modifier and Type Method Description static FloatBufferFloatBuffer. allocate(int capacity)Allocates a new float buffer.abstract FloatBufferByteBuffer. asFloatBuffer()Creates a view of this byte buffer as a float buffer.abstract FloatBufferFloatBuffer. asReadOnlyBuffer()Creates a new, read-only float buffer that shares this buffer's content.FloatBufferFloatBuffer. clear()Clears this buffer.abstract FloatBufferFloatBuffer. compact()Compacts this buffer (optional operation).abstract FloatBufferFloatBuffer. duplicate()Creates a new float buffer that shares this buffer's content.FloatBufferFloatBuffer. flip()Flips this buffer.FloatBufferFloatBuffer. get(float[] dst)Relative bulk get method.FloatBufferFloatBuffer. get(float[] dst, int offset, int length)Relative bulk get method.FloatBufferFloatBuffer. get(int index, float[] dst)Absolute bulk get method.FloatBufferFloatBuffer. get(int index, float[] dst, int offset, int length)Absolute bulk get method.FloatBufferFloatBuffer. limit(int newLimit)Sets this buffer's limit.FloatBufferFloatBuffer. mark()Sets this buffer's mark at its position.FloatBufferFloatBuffer. position(int newPosition)Sets this buffer's position.abstract FloatBufferFloatBuffer. put(float f)Relative put method (optional operation).FloatBufferFloatBuffer. put(float[] src)Relative bulk put method (optional operation).FloatBufferFloatBuffer. put(float[] src, int offset, int length)Relative bulk put method (optional operation).abstract FloatBufferFloatBuffer. put(int index, float f)Absolute put method (optional operation).FloatBufferFloatBuffer. put(int index, float[] src)Absolute bulk put method (optional operation).FloatBufferFloatBuffer. put(int index, float[] src, int offset, int length)Absolute bulk put method (optional operation).FloatBufferFloatBuffer. put(FloatBuffer src)Relative bulk put method (optional operation).FloatBufferFloatBuffer. reset()Resets this buffer's position to the previously-marked position.FloatBufferFloatBuffer. rewind()Rewinds this buffer.abstract FloatBufferFloatBuffer. slice()Creates a new float buffer whose content is a shared subsequence of this buffer's content.abstract FloatBufferFloatBuffer. slice(int index, int length)Creates a new float buffer whose content is a shared subsequence of this buffer's content.static FloatBufferFloatBuffer. wrap(float[] array)Wraps a float array into a buffer.static FloatBufferFloatBuffer. wrap(float[] array, int offset, int length)Wraps a float array into a buffer.Methods in java.nio with parameters of type FloatBuffer Modifier and Type Method Description intFloatBuffer. compareTo(FloatBuffer that)Compares this buffer to another.intFloatBuffer. mismatch(FloatBuffer that)Finds and returns the relative index of the first mismatch between this buffer and a given buffer.FloatBufferFloatBuffer. put(FloatBuffer src)Relative bulk put method (optional operation).