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