| MemoryMappedViewStream: WriteBlock |
Writes a block of bytes to the current stream using data from a buffer.
Public Sub WriteBlock( Buffer ( ) As Byte, ByVal Offset As Long, ByVal Count As Long )
Writing occurs at the current position in the stream.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The stream is closed. |
| NotSupportedException |
The underlying memory does not support writing. - or - An attempt is made to write to the stream and the CanWrite property is False. - or - The Count value is greater than the capacity of the stream. - or - The position is at the end of the stream capacity. |
| IOException | An I/O error occurs. |
| ArgumentOutOfRangeException |
The Offset parameter is less than the lower bound of the buffer array. - or - The Count parameter is less than zero. |
| ArgumentException | The Offset parameter plus the Count parameter is greater than the upper bound of the buffer array. |
| ArgumentNullException | The Buffer parameter is null. |