Java.Nio.ByteBuffer Members

The members of Java.Nio.ByteBuffer are listed below.

See Also: Inherited members from Java.Nio.Buffer

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
abstract
Charchar. Returns the char at the current position and increases the position by 2.
[read-only]
abstract
Doubledouble. Returns the double at the current position and increases the position by 8.
[read-only]
abstract
Floatfloat. Returns the float at the current position and increases the position by 4.
[read-only]
override
HasArraybool. Returns true if array and arrayOffset won't throw.
[read-only]
abstract
Intint. Returns the int at the current position and increases the position by 4.
[read-only]
abstract
Longlong. Returns the long at the current position and increases the position by 8.
[read-only]
abstract
Shortshort. Returns the short at the current position and increases the position by 2.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
Allocate(int) : ByteBuffer
Creates a byte buffer based on a newly allocated byte array.
static
AllocateDirect(int) : ByteBuffer
Creates a direct byte buffer based on a newly allocated memory block.
override
ArrayOffset() : int
Returns the offset of the byte array which this buffer is based on, if there is one.
abstract
AsCharBuffer() : CharBuffer
Returns a char buffer which is based on the remaining content of this byte buffer.
abstract
AsDoubleBuffer() : DoubleBuffer
Returns a double buffer which is based on the remaining content of this byte buffer.
abstract
AsFloatBuffer() : FloatBuffer
Returns a float buffer which is based on the remaining content of this byte buffer.
abstract
AsIntBuffer() : IntBuffer
Returns a int buffer which is based on the remaining content of this byte buffer.
abstract
AsLongBuffer() : LongBuffer
Returns a long buffer which is based on the remaining content of this byte buffer.
abstract
AsReadOnlyBuffer() : ByteBuffer
Returns a read-only buffer that shares its content with this buffer.
abstract
AsShortBuffer() : ShortBuffer
Returns a short buffer which is based on the remaining content of this byte buffer.
abstract
Compact() : ByteBuffer
Compacts this byte buffer.
CompareTo(ByteBuffer) : int
Compares the remaining bytes of this buffer to another byte buffer's remaining bytes.
abstract
Duplicate() : ByteBuffer
Returns a duplicated buffer that shares its content with this buffer.
abstract
Get() : sbyte
Returns the byte at the current position and increases the position by 1.
Get(byte[]) : ByteBuffer
Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read.
abstract
Get(int) : sbyte
Returns the byte at the specified index and does not change the position.
Get(byte[], int, int) : ByteBuffer
Reads bytes from the current position into the specified byte array, starting at the specified offset, and increases the position by the number of bytes read.
abstract
GetChar(int) : char
Returns the char at the specified index.
abstract
GetDouble(int) : double
Returns the double at the specified index.
abstract
GetFloat(int) : float
Returns the float at the specified index.
abstract
GetInt(int) : int
Returns the int at the specified index.
abstract
GetLong(int) : long
Returns the long at the specified index.
abstract
GetShort(int) : short
Returns the short at the specified index.
Order() : ByteOrder
Returns the byte order used by this buffer when converting bytes from/to other primitive types.
Order(ByteOrder) : ByteBuffer
Sets the byte order of this buffer.
Put(ByteBuffer) : ByteBuffer
Writes all the remaining bytes of the src byte buffer to this buffer's current position, and increases both buffers' position by the number of bytes copied.
Put(byte[]) : ByteBuffer
Writes bytes in the given byte array to the current position and increases the position by the number of bytes written.
abstract
Put(sbyte) : ByteBuffer
Writes the given byte to the current position and increases the position by 1.
abstract
Put(int, sbyte) : ByteBuffer
Write a byte to the specified index of this buffer without changing the position.
Put(byte[], int, int) : ByteBuffer
Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position by the number of bytes written.
abstract
PutChar(char) : ByteBuffer
Writes the given char to the current position and increases the position by 2.
abstract
PutChar(int, char) : ByteBuffer
Writes the given char to the specified index of this buffer.
abstract
PutDouble(double) : ByteBuffer
Writes the given double to the current position and increases the position by 8.
abstract
PutDouble(int, double) : ByteBuffer
Writes the given double to the specified index of this buffer.
abstract
PutFloat(float) : ByteBuffer
Writes the given float to the current position and increases the position by 4.
abstract
PutFloat(int, float) : ByteBuffer
Writes the given float to the specified index of this buffer.
abstract
PutInt(int) : ByteBuffer
Writes the given int to the current position and increases the position by 4.
abstract
PutInt(int, int) : ByteBuffer
Writes the given int to the specified index of this buffer.
abstract
PutLong(long) : ByteBuffer
Writes the given long to the current position and increases the position by 8.
abstract
PutLong(int, long) : ByteBuffer
Writes the given long to the specified index of this buffer.
abstract
PutShort(short) : ByteBuffer
Writes the given short to the current position and increases the position by 2.
abstract
PutShort(int, short) : ByteBuffer
Writes the given short to the specified index of this buffer.
abstract
Slice() : ByteBuffer
Returns a sliced buffer that shares its content with this buffer.
static
Wrap(byte[]) : ByteBuffer
Creates a new byte buffer by wrapping the given byte array.
static
Wrap(byte[], int, int) : ByteBuffer
Creates a new byte buffer by wrapping the given byte array.

Explicitly Implemented Interface Members

Java.Lang.IComparable.CompareToDocumentation for this section has not yet been entered.