Click or drag to resize
StreamHelperTryFillAsync Method
Repeatedly calls read until count bytes have been read into buffer or the end of the stream has been reached.

Namespace: Lawo.IO
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public static Task<int> TryFillAsync(
	ReadAsyncCallback read,
	byte[] buffer,
	int offset,
	int count,
	CancellationToken cancellationToken
)

Parameters

read
Type: Lawo.IOReadAsyncCallback
buffer
Type: SystemByte
offset
Type: SystemInt32
count
Type: SystemInt32
cancellationToken
Type: System.ThreadingCancellationToken

Return Value

Type: TaskInt32
A task that represents the asynchronous operation. The value of the Result contains the number of bytes read.
Exceptions
ExceptionCondition
ArgumentNullExceptionread equals null.
Exceptionread has thrown an exception.
See Also