DeflateStream.CopyTo(Stream, Int32) 方法

定義

使用指定的緩衝區大小,從目前 Deflate 資料流讀取所有位元組,並將其寫入另一個資料流中。

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

要將目前 Deflate 資料流內容複製到其中的資料流。

bufferSize
Int32

緩衝區的大小。 這個值必須大於零。 預設大小為 81920。

備註

複製會從目前 Deflate 資料流程中的目前位置開始,而且不會在複製作業完成後重設目的地資料流程的位置。

適用於