ReadBufferFillAsync Method (Byte, Int32, Int32, CancellationToken) |
Namespace: Lawo.IO
public Task FillAsync( byte[] buffer, int offset, int count, CancellationToken cancellationToken )
Exception | Condition |
---|---|
ArgumentException | The length of buffer is less than offset plus count. |
ArgumentNullException | buffer equals null. |
ArgumentOutOfRangeException | offset and/or count are negative. |
EndOfStreamException | The end of the stream has been reached before buffer could be filled to count bytes. |
InvalidOperationException | The ReadBuffer object was created by calling ReadBuffer(ReadCallback, Int32). |