แก้ไข

แชร์ผ่าน


ZLibStream.CopyTo(Stream, Int32) Method

Definition

Reads the bytes from the current stream and writes them to another stream, using the specified buffer size.

public:
 override void CopyTo(System::IO::Stream ^ destination, int bufferSize);
public override void CopyTo (System.IO.Stream destination, int bufferSize);
override this.CopyTo : System.IO.Stream * int -> unit
Public Overrides Sub CopyTo (destination As Stream, bufferSize As Integer)

Parameters

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.

Exceptions

destination is null.

bufferSize is not a positive number.

The stream does not support writing.

The stream is closed.

Applies to