Example usage for Java java.nio ShortBuffer fields, constructors, methods, implement or subclass
The text is from its open source code.
ShortBuffer | allocate(int capacity) Creates a short buffer based on a newly allocated short array. |
short[] | array() Returns the short array which this buffer is based on, if there is one. |
int | arrayOffset() Returns the offset of the short array which this buffer is based on, if there is one. |
ShortBuffer | 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. |
ShortBuffer | compact() Compacts this short buffer. |
int | compareTo(ShortBuffer otherBuffer) Compare the remaining shorts of this buffer to another short buffer's remaining shorts. |
ShortBuffer | duplicate() Returns a duplicated buffer that shares its content with this buffer. |
boolean | equals(Object other) Checks whether this short buffer is equal to another object. |
Buffer | flip() Flips this buffer. |
short | get() Returns the short at the current position and increases the position by 1. |
ShortBuffer | get(short[] dest) Reads shorts from the current position into the specified short array and increases the position by the number of shorts read. |
short | get(int index) Returns the short at the specified index; the position is not changed. |
ShortBuffer | get(short[] dest, int off, int len) Reads shorts from the current position into the specified short array, starting from the specified offset, and increases the position by the number of shorts read. |
boolean | hasArray() Indicates whether this buffer is based on a short 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 | mark() Marks the current position, so that the position may return to this point later by calling reset() . |
ByteOrder | order() Returns the byte order used by this buffer when converting shorts from/to bytes. |
int | position() Returns the position of this buffer. |
Buffer | position(int newPosition) Sets the position of this buffer. |
ShortBuffer | put(short s) Writes the given short to the current position and increases the position by 1. |
ShortBuffer | put(short[] src) Writes shorts from the given short array to the current position and increases the position by the number of shorts written. |
ShortBuffer | put(ShortBuffer src) Writes all the remaining shorts of the src short buffer to this buffer's current position, and increases both buffers' position by the number of shorts copied. |
ShortBuffer | put(short[] src, int off, int len) Writes shorts from the given short array, starting from the specified offset, to the current position and increases the position by the number of shorts written. |
ShortBuffer | put(int index, short s) Writes a short 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 | reset() Resets the position of this buffer to the mark . |
Buffer | rewind() Rewinds this buffer. |
ShortBuffer | slice() Returns a sliced buffer that shares its content with this buffer. |
String | toString() Returns a string representing the state of this short buffer. |
ShortBuffer | wrap(short[] array) Creates a new short buffer by wrapping the given short array. |
ShortBuffer | wrap(short[] array, int start, int len) Creates a new short buffer by wrapping the given short array. |