Språk

BackupDataInput.ReadEntityDataAsync(Byte[], Int32, Int32) Method

Definition

Runs ReadEntityData(Byte[], Int32, Int32) on a thread pool thread.

public System.Threading.Tasks.Task<int> ReadEntityDataAsync(byte[]? data, int offset, int size);
member this.ReadEntityDataAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>

Parameters

data
Byte[]

The buffer that receives the data. It must have space for size bytes starting at offset.

offset
Int32

The index in data at which to start writing the bytes read.

size
Int32

The number of bytes to read in this call.

Returns

A task whose result is the number of bytes read, or zero when all data for the current entity has been read.

Remarks

Read the entity header first. This .NET wrapper uses Task.Run to call the synchronous method. Await the task before accessing the buffer or starting another operation on this input.

.NET task wrapper implementation.

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