MemoryFile.ReadBytes(Byte[], Int32, Int32, Int32) 方法

定義

從記憶體檔案讀取位元組。

[Android.Runtime.Register("readBytes", "([BIII)I", "GetReadBytes_arrayBIIIHandler")]
public virtual int ReadBytes (byte[]? buffer, int srcOffset, int destOffset, int count);
[<Android.Runtime.Register("readBytes", "([BIII)I", "GetReadBytes_arrayBIIIHandler")>]
abstract member ReadBytes : byte[] * int * int * int -> int
override this.ReadBytes : byte[] * int * int * int -> int

參數

buffer
Byte[]

要讀取位元組的位元組陣列。

srcOffset
Int32

位移至要讀取的記憶體檔案。

destOffset
Int32

位移至要讀取的位元組數組緩衝區。

count
Int32

要讀取的位元組數目。

傳回

讀取的位元組數目。

屬性

例外狀況

如果記憶體檔案已清除或停用,則為 。

備註

從記憶體檔案讀取位元組。 如果檔案已清除,將會擲回 IOException。

android.os.MemoryFile.readBytes(byte[], int, int, int)Java 檔。

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

適用於