Click or drag to resize
ReadBufferFillAsync Method (Byte, Int32, Int32, CancellationToken)
Asynchronously reads exactly count bytes from the buffer.

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

Parameters

buffer
Type: SystemByte
offset
Type: SystemInt32
count
Type: SystemInt32
cancellationToken
Type: System.ThreadingCancellationToken

Return Value

Type: Task
Exceptions
ExceptionCondition
ArgumentExceptionThe length of buffer is less than offset plus count.
ArgumentNullExceptionbuffer equals null.
ArgumentOutOfRangeExceptionoffset and/or count are negative.
EndOfStreamExceptionThe end of the stream has been reached before buffer could be filled to count bytes.
InvalidOperationExceptionThe ReadBuffer object was created by calling ReadBuffer(ReadCallback, Int32).
Remarks
If count > Count - Index the callback specified during construction is called as necessary.
See Also