| 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 |
ByteBuffer.asIntBuffer()
Returns a int buffer which is based on the remaining content of this byte buffer.
|
IntBuffer |
IntBuffer.compact()
Compacts this int buffer.
|
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.
|
IntBuffer |
IntBuffer.put(int c)
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. |
IntBuffer |
IntBuffer.put(int index,
int c)
Write a int to the specified index of this buffer; the position is not changed.
|
IntBuffer |
IntBuffer.slice()
Returns a sliced buffer that shares its content with this buffer.
|
| 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 © 2019–2020. All rights reserved.