| 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 |
DirectReadWriteByteBuffer.asFloatBuffer() |
abstract FloatBuffer |
ByteBuffer.asFloatBuffer()
Returns a float buffer which is based on the remaining content of this
byte buffer.
|
abstract FloatBuffer |
FloatBuffer.asReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
|
abstract FloatBuffer |
FloatBuffer.compact()
Compacts this float buffer.
|
abstract 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.
|
abstract FloatBuffer |
FloatBuffer.put(float f)
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. |
abstract FloatBuffer |
FloatBuffer.put(int index,
float f)
Writes a float to the specified index of this buffer; the position is not
changed.
|
abstract FloatBuffer |
FloatBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
static FloatBuffer |
FloatBuffer.wrap(float[] array)
Creates a new float buffer by wrapping the given float array.
|
static FloatBuffer |
FloatBuffer.wrap(float[] array,
int start,
int len)
Creates a new float buffer by wrapping the given float array.
|
| 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 © 2020 Dmitrii Tikhomirov. All rights reserved.