Java.Nio.Buffer: Method Members

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

See Also: Inherited members from Java.Lang.Object

Public Methods

abstract
ArrayOffset() : int
Returns the offset into the array returned by array of the first element of the buffer (optional operation).
Capacity() : int
Returns the capacity of this buffer.
Clear() : Buffer
Clears this buffer.
Flip() : Buffer
Flips this buffer.
GetDirectBufferAddress() : IntPtr
Documentation for this section has not yet been entered.
Limit() : int
Returns the limit of this buffer.
Limit(int) : Buffer
Sets the limit of this buffer.
Mark() : Buffer
Marks the current position, so that the position may return to this point later by calling reset().
Position() : int
Returns the position of this buffer.
Position(int) : Buffer
Sets the position of this buffer.
Remaining() : int
Returns the number of remaining elements in this buffer, that is limit - position.
Reset() : Buffer
Resets the position of this buffer to the mark.
Rewind() : Buffer
Rewinds this buffer.