| Package | Description |
|---|---|
| java.nio |
| Modifier and Type | Method and Description |
|---|---|
static DoubleBuffer |
DoubleBuffer.allocate(int capacity)
Creates a double buffer based on a newly allocated double array.
|
abstract DoubleBuffer |
ByteBuffer.asDoubleBuffer()
Returns a double buffer which is based on the remaining content of this
byte buffer.
|
abstract DoubleBuffer |
DoubleBuffer.asReadOnlyBuffer()
Returns a read-only buffer that shares its content with this buffer.
|
abstract DoubleBuffer |
DoubleBuffer.compact()
Compacts this double buffer.
|
abstract DoubleBuffer |
DoubleBuffer.duplicate()
Returns a duplicated buffer that shares its content with this buffer.
|
DoubleBuffer |
DoubleBuffer.get(double[] dest)
Reads doubles from the current position into the specified double array
and increases the position by the number of doubles read.
|
DoubleBuffer |
DoubleBuffer.get(double[] dest,
int off,
int len)
Reads doubles from the current position into the specified double array,
starting from the specified offset, and increases the position by the
number of doubles read.
|
abstract DoubleBuffer |
DoubleBuffer.put(double d)
Writes the given double to the current position and increases the
position by 1.
|
DoubleBuffer |
DoubleBuffer.put(double[] src)
Writes doubles from the given double array to the current position and
increases the position by the number of doubles written.
|
DoubleBuffer |
DoubleBuffer.put(double[] src,
int off,
int len)
Writes doubles from the given double array, starting from the specified
offset, to the current position and increases the position by the number
of doubles written.
|
DoubleBuffer |
DoubleBuffer.put(DoubleBuffer src)
Writes all the remaining doubles of the
src double buffer to this
buffer's current position, and increases both buffers' position by the
number of doubles copied. |
abstract DoubleBuffer |
DoubleBuffer.put(int index,
double d)
Write a double to the specified index of this buffer and the position is
not changed.
|
abstract DoubleBuffer |
DoubleBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
static DoubleBuffer |
DoubleBuffer.wrap(double[] array)
Creates a new double buffer by wrapping the given double array.
|
static DoubleBuffer |
DoubleBuffer.wrap(double[] array,
int start,
int len)
Creates a new double buffer by wrapping the given double array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DoubleBuffer.compareTo(DoubleBuffer otherBuffer)
Compare the remaining doubles of this buffer to another double buffer's
remaining doubles.
|
DoubleBuffer |
DoubleBuffer.put(DoubleBuffer src)
Writes all the remaining doubles of the
src double buffer to this
buffer's current position, and increases both buffers' position by the
number of doubles copied. |
Copyright © 2020 Dmitrii Tikhomirov. All rights reserved.