| Package | Description |
|---|---|
| java.nio |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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 © 2019–2020. All rights reserved.