語言

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 串流的當前位置開始,且複製操作完成後不會重置目的串流的位置。

適用於