Language

RandomAccessFile.WriteAsync Method

Definition

Overloads

Name Description
WriteAsync(Byte[])

Writes the byte array to the file in a task.

WriteAsync(Byte[], Int32, Int32)

Writes a byte-array range to the file in a task.

WriteAsync(Int32)

Writes one byte to the file in a task.

WriteAsync(Byte[])

Writes the byte array to the file in a task.

public System.Threading.Tasks.Task WriteAsync(byte[]? b);
member this.WriteAsync : byte[] -> System.Threading.Tasks.Task

Parameters

b
Byte[]

The bytes to write to the file.

Returns

A task that reports completion or failure of the write operation.

Remarks

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

WriteAsync(Byte[], Int32, Int32)

Writes a byte-array range to the file in a task.

public System.Threading.Tasks.Task WriteAsync(byte[]? b, int off, int len);
member this.WriteAsync : byte[] * int * int -> System.Threading.Tasks.Task

Parameters

b
Byte[]

The array that contains the bytes to write.

off
Int32

The index of the first byte to write.

len
Int32

The number of bytes to write.

Returns

A task that reports completion or failure of the write operation.

Remarks

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

WriteAsync(Int32)

Writes one byte to the file in a task.

public System.Threading.Tasks.Task WriteAsync(int b);
member this.WriteAsync : int -> System.Threading.Tasks.Task

Parameters

b
Int32

The value whose low eight bits form the byte to write.

Returns

A task that reports completion or failure of the write operation.

Remarks

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