다음을 통해 공유


ProxyFileDescriptorCallback.OnWrite(Int64, Int32, Byte[]) Method

Definition

Handles bytes written to file descriptor.

[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

Parameters

offset
Int64

Offset in bytes from the file head specifying where to write bytes. If a seek operation is conducted on the file descriptor, then a write operation is requested, the offset refrects the proper position of requested bytes.

size
Int32

Size for write bytes.

data
Byte[]

Byte array to be written to somewhere.

Returns

Size of bytes processed by the function.

Attributes

Remarks

Handles bytes written to file descriptor.

Java documentation for android.os.ProxyFileDescriptorCallback.onWrite(long, int, byte[]).

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