GZipStream.CopyTo(Stream, Int32) 方法

定义

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

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

向其中复制当前 GZip 流的内容的流。

bufferSize
Int32

缓冲区的大小。 此值必须大于零。 默认大小为 81920。

注解

复制从当前 GZip 流中的当前位置开始,在复制操作完成后不会重置目标流的位置。

适用于