Java.Nio.ShortBuffer: Method Members

The methods of Java.Nio.ShortBuffer are listed below. For a list of all members, see the ShortBuffer Members list.

See Also: Inherited members from Java.Nio.Buffer

Public Methods

static
Allocate(int) : ShortBuffer
Creates a short buffer based on a newly allocated short array.
override
ArrayOffset() : int
Returns the offset into the array returned by array of the first element of the buffer (optional operation).
abstract
AsReadOnlyBuffer() : ShortBuffer
Returns a read-only buffer that shares its content with this buffer.
abstract
Compact() : ShortBuffer
Compacts this short buffer.
CompareTo(ShortBuffer) : int
Compare the remaining shorts of this buffer to another short buffer's remaining shorts.
abstract
Duplicate() : ShortBuffer
Returns a duplicated buffer that shares its content with this buffer.
abstract
Get() : short
Returns the short at the current position and increases the position by 1.
Get(short[]) : ShortBuffer
Reads shorts from the current position into the specified short array and increases the position by the number of shorts read.
abstract
Get(int) : short
Returns the short at the specified index; the position is not changed.
Get(short[], int, int) : ShortBuffer
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.
abstract
Order() : ByteOrder
Returns the byte order used by this buffer when converting shorts from/to bytes.
Put(ShortBuffer) : ShortBuffer
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.
abstract
Put(short) : ShortBuffer
Writes the given short to the current position and increases the position by 1.
Put(short[]) : ShortBuffer
Writes shorts from the given short array to the current position and increases the position by the number of shorts written.
abstract
Put(int, short) : ShortBuffer
Writes a short to the specified index of this buffer; the position is not changed.
Put(short[], int, int) : ShortBuffer
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.
abstract
Slice() : ShortBuffer
Returns a sliced buffer that shares its content with this buffer.
static
Wrap(short[]) : ShortBuffer
Creates a new short buffer by wrapping the given short array.
static
Wrap(short[], int, int) : ShortBuffer
Creates a new short buffer by wrapping the given short array.