| Package | Description |
|---|---|
| java.nio |
| Modifier and Type | Method and Description |
|---|---|
static FloatBuffer |
FloatBuffer.allocate(int capacity)
Creates a float buffer based on a newly allocated float array.
|
FloatBuffer |
ByteBuffer.asFloatBuffer()
Returns a float buffer which is based on the remaining content of this byte buffer.
|
FloatBuffer |
FloatBuffer.compact()
Compacts this float buffer.
|
FloatBuffer |
FloatBuffer.duplicate()
Returns a duplicated buffer that shares its content with this buffer.
|
FloatBuffer |
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.
|
FloatBuffer |
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.
|
FloatBuffer |
FloatBuffer.put(float c)
Writes the given float to the current position and increases the position by 1.
|
FloatBuffer |
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 |
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.
|
FloatBuffer |
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 |
FloatBuffer.put(int index,
float c)
Writes a float to the specified index of this buffer; the position is not changed.
|
FloatBuffer |
FloatBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
FloatBuffer.compareTo(FloatBuffer otherBuffer)
Compare the remaining floats of this buffer to another float buffer's remaining floats.
|
FloatBuffer |
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. |
Copyright © 2019–2020. All rights reserved.