共用方式為


ByteBuffer.GetChar(Int32) 方法

定義

絕對 get 方法來讀取 char 值。

[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

參數

index
Int32

要從中讀取位元組的索引

傳回

指定索引處的 char 值

屬性

例外狀況

如果 不合法,則 index 為 。

備註

絕對 get 方法來讀取 char 值。

根據目前的位元組順序,讀取指定索引處的兩個字節,將它們組成字元值。

java.nio.ByteBuffer.getChar(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於