Share via


MockAdlsInputStream.ReadAsync(Byte[], Int32, Int32, CancellationToken) Method

Definition

Reads a sequence of bytes from the current underlying stream and advances the position within the stream by the number of bytes read Asynchronous operation.

public override System.Threading.Tasks.Task<int> ReadAsync (byte[] output, int offset, int count, System.Threading.CancellationToken cancelToken);
override this.ReadAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Overrides Function ReadAsync (output As Byte(), offset As Integer, count As Integer, cancelToken As CancellationToken) As Task(Of Integer)

Parameters

output
Byte[]

Output byte array

offset
Int32

offset at which data should be put in the output array

count
Int32

Count of the bytes read

cancelToken
CancellationToken

Cancellation Token

Returns

Number of bytes read

Applies to