Click or drag to resize
ReadBufferFillAsync Method (Int32, CancellationToken)
Asynchronously ensures that count <= (Count - Index).

Namespace: Lawo.IO
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public Task FillAsync(
	int count,
	CancellationToken cancellationToken
)

Parameters

count
Type: SystemInt32
The minimum number of bytes that will be available when the returned Task completes.
cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: Task
Exceptions
ExceptionCondition
EndOfStreamExceptionThe end of the stream has been reached before the buffer could be filled to count bytes.
InvalidOperationExceptionThe ReadBuffer object was created by calling ReadBuffer(ReadCallback, Int32).
Remarks
Asynchronously reads bytes into the buffer by repeatedly calling the callback specified during construction until at least count bytes are available.
See Also