public class IntBuffer extends DataBuffer
| Modifier and Type | Field and Description |
|---|---|
int[] |
array |
arrayObject, capacity, end, growthCap, growthMin, start| Constructor and Description |
|---|
IntBuffer()
Creates an empty int buffer.
|
IntBuffer(int size)
Creates a int buffer of the given size.
|
IntBuffer(int[] array) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value) |
java.lang.String |
contentsToString() |
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property.
|
ByteBuffer |
toByteBuffer() |
int[] |
toIntArray() |
append, clear, clone, copy, copyTo, getSize, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, setToMatch, subsection, tidy, toStringpublic IntBuffer()
public IntBuffer(int size)
public IntBuffer(int[] array)
public void newArray(int size)
DataBuffernewArray in class DataBufferpublic void add(int value)
public final int[] toIntArray()
public java.lang.String contentsToString()
public ByteBuffer toByteBuffer()