语言

ZLibStream.CopyTo(Stream, Int32) 方法

定义

使用指定的缓冲区大小从当前流中读取字节并将其写入另一个流。

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)

参数

destination
Stream

将当前流的内容复制到的流。

bufferSize
Int32

缓冲区的大小。 此值必须大于零。

例外

destination 是 null。

bufferSize 不是正数。

流不支持写入。

流已关闭。

适用于