Example usage for Java java.nio IntBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
IntBuffer | allocate(int capacity) Creates an int buffer based on a newly allocated int array. |
int[] | array() Returns the int array which this buffer is based on, if there is one. |
int | arrayOffset() Returns the offset of the int array which this buffer is based on, if there is one. |
IntBuffer | asReadOnlyBuffer() Returns a read-only buffer that shares its content with this buffer. |
int | capacity() Returns the capacity of this buffer. |
Buffer | clear() Clears this buffer. |
IntBuffer | compact() Compacts this int buffer. |
int | compareTo(IntBuffer otherBuffer) Compares the remaining ints of this buffer to another int buffer's remaining ints. |
IntBuffer | duplicate() Returns a duplicated buffer that shares its content with this buffer. |
boolean | equals(Object other) Checks whether this int buffer is equal to another object. |
Buffer | flip() Flips this buffer. |
int | get() Returns the int at the current position and increases the position by 1. |
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. |
int | get(int index) Returns an int at the specified index; the position is not changed. |
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. |
boolean | hasArray() Indicates whether this buffer is based on a int array and is read/write. |
int | hashCode() Calculates this buffer's hash code from the remaining chars. |
boolean | hasRemaining() Indicates if there are elements remaining in this buffer, that is if position < limit . |
boolean | isDirect() Indicates whether this buffer is direct. |
int | limit() Returns the limit of this buffer. |
Buffer | limit(int newLimit) Sets the limit of this buffer. |
ByteOrder | order() Returns the byte order used by this buffer when converting ints from/to bytes. |
int | position() Returns the position of this buffer. |
Buffer | position(int newPosition) Sets the position of this buffer. |
IntBuffer | put(int i) Writes the given int to the current position and increases the position by 1. |
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 | 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 | 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 | put(int index, int i) Write a int to the specified index of this buffer; the position is not changed. |
int | remaining() Returns the number of remaining elements in this buffer, that is limit - position . |
Buffer | rewind() Rewinds this buffer. |
IntBuffer | slice() Returns a sliced buffer that shares its content with this buffer. |
String | toString() Returns a string represents of the state of this int buffer. |
IntBuffer | wrap(int[] array, int start, int len) Creates a new int buffer by wrapping the given int array. |
IntBuffer | wrap(int[] array) Creates a new int buffer by wrapping the given int array. |