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