ZLibStream.Write 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Write(ReadOnlySpan<Byte>) |
從指定的位元組區間寫入壓縮的位元組到底層串流。 |
| Write(Byte[], Int32, Int32) |
從指定的位元組陣列將壓縮的位元組寫入底層串流。 |
Write(ReadOnlySpan<Byte>)
從指定的位元組區間寫入壓縮的位元組到底層串流。
public:
override void Write(ReadOnlySpan<System::Byte> buffer);
public override void Write(ReadOnlySpan<byte> buffer);
override this.Write : ReadOnlySpan<byte> -> unit
Public Overrides Sub Write (buffer As ReadOnlySpan(Of Byte))
參數
- buffer
- ReadOnlySpan<Byte>
用來寫入資料的緩衝區。
適用於
Write(Byte[], Int32, Int32)
從指定的位元組陣列將壓縮的位元組寫入底層串流。
public:
override void Write(cli::array <System::Byte> ^ buffer, int offset, int count);
public override void Write(byte[] buffer, int offset, int count);
override this.Write : byte[] * int * int -> unit
Public Overrides Sub Write (buffer As Byte(), offset As Integer, count As Integer)
參數
- buffer
- Byte[]
用來寫入資料的緩衝區。
- offset
- Int32
開始寫入的緩衝區位元組偏移量。
- count
- Int32
最大可寫入位元組數。