ByteBuffer.Get ByteBuffer.Get Method

Definition

Overloads

Get() Get()

Returns the byte at the current position and increases the position by 1.

Get(Byte[]) Get(Byte[])

Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read.

Get(Int32) Get(Int32)

Returns the byte at the specified index and does not change the position.

Get(Byte[], Int32, Int32) Get(Byte[], Int32, Int32)

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.

Get() Get()

Returns the byte at the current position and increases the position by 1.

[Android.Runtime.Register("get", "()B", "GetGetHandler")]
public abstract sbyte Get ();
abstract member Get : unit -> sbyte

Returns

Exceptions

if the position is equal or greater than limit.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Get(Byte[]) Get(Byte[])

Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read.

[Android.Runtime.Register("get", "([B)Ljava/nio/ByteBuffer;", "GetGet_arrayBHandler")]
public virtual Java.Nio.ByteBuffer Get (byte[] dst);
abstract member Get : byte[] -> Java.Nio.ByteBuffer
override this.Get : byte[] -> Java.Nio.ByteBuffer

Parameters

dst
Byte[]

the destination byte array.

Returns

Exceptions

if dst.length is greater than remaining().

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Get(Int32) Get(Int32)

Returns the byte at the specified index and does not change the position.

[Android.Runtime.Register("get", "(I)B", "GetGet_IHandler")]
public abstract sbyte Get (int index);
abstract member Get : int -> sbyte

Parameters

index
Int32 Int32

the index, must not be negative and less than limit.

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Get(Byte[], Int32, Int32) Get(Byte[], Int32, Int32)

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.

[Android.Runtime.Register("get", "([BII)Ljava/nio/ByteBuffer;", "GetGet_arrayBIIHandler")]
public virtual Java.Nio.ByteBuffer Get (byte[] dst, int offset, int length);
abstract member Get : byte[] * int * int -> Java.Nio.ByteBuffer
override this.Get : byte[] * int * int -> Java.Nio.ByteBuffer

Parameters

dst
Byte[]

the target byte array.

offset
Int32 Int32
length
Int32 Int32

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to