語言

ProxyFileDescriptorCallback.OnWrite(Int64, Int32, Byte[]) 方法

定義

處理寫入檔案描述符的位元組。

[Android.Runtime.Register("onWrite", "(JI[B)I", "GetOnWrite_JIarrayBHandler", ApiSince=26)]
public virtual int OnWrite(long offset, int size, byte[]? data);
[<Android.Runtime.Register("onWrite", "(JI[B)I", "GetOnWrite_JIarrayBHandler", ApiSince=26)>]
abstract member OnWrite : int64 * int * byte[] -> int
override this.OnWrite : int64 * int * byte[] -> int

參數

offset
Int64

以位元組為單位,從檔案頭指定寫入位元組的位置。 若對檔案描述符執行尋道操作,接著請求寫入操作,偏移量會重新校正請求位元組的正確位置。

size
Int32

寫位元組的大小。

data
Byte[]

要寫入某個位元組陣列。

傳回

函式處理的位元組大小。

屬性

備註

處理寫入檔案描述符的位元組。

Java 文件 android.os.ProxyFileDescriptorCallback.onWrite(long, int, byte[])。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於