SeekableStreamCopyTo(Stream, Int32) - метод
Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.
Пространство имён: Tessa.Platform.IOСборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
public override void CopyTo(
Stream destination,
int bufferSize
)
Public Overrides Sub CopyTo (
destination As Stream,
bufferSize As Integer
)
public:
virtual void CopyTo(
Stream^ destination,
int bufferSize
) override
abstract CopyTo :
destination : Stream *
bufferSize : int -> unit
override CopyTo :
destination : Stream *
bufferSize : int -> unit
Параметры
- destination Stream
- The stream to which the contents of the current stream will be copied.
- bufferSize Int32
- The size of the buffer. This value must be greater than zero. The default size is 81920.
ArgumentNullException | destination is . |
ArgumentOutOfRangeException | bufferSize is negative or zero. |
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(Stream) method was called. |
IOException | An I/O error occurred. |