MemoryMappedViewStream: CopyTo |
Reads the bytes from the current stream and writes them to another stream.
Public Sub CopyTo( ByVal Destination As Stream, Optional ByVal BufferSize As Long = 81920 )
Default: 81920
Copying begins at the current position in the current stream, and does not reset the position of the destination stream after the copy operation is complete.
Exception | Condition |
---|---|
ArgumentNullException | Destination is Nothing. |
NotSupportedException |
The current stream does not support reading. -or- Destination does not support writing. |
ObjectDisposedException | Either the current stream or Destination were closed before the CopyTo method was called. |
IOException | An I/O error occurred. |