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