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

緩衝區的大小。 這個值必須大於零。

例外狀況

destinationnull

bufferSize 不是正數。

資料流不支援寫入。

資料流已關閉。

適用於