Sdílet prostřednictvím


ByteBuffer.GetChar(Int32) Method

Definition

Absolute get method for reading a char value.

[Android.Runtime.Register("getChar", "(I)C", "GetGetChar_IHandler")]
public abstract char GetChar (int index);
[<Android.Runtime.Register("getChar", "(I)C", "GetGetChar_IHandler")>]
abstract member GetChar : int -> char

Parameters

index
Int32

The index from which the bytes will be read

Returns

The char value at the given index

Attributes

Exceptions

if index is invalid.

Remarks

Absolute get method for reading a char value.

Reads two bytes at the given index, composing them into a char value according to the current byte order.

Java documentation for java.nio.ByteBuffer.getChar(int).

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