Method
Write
func Write(buffer: byte[], offset: int, count: int, cancellationToken: CancellationToken = default) -> Task<Result<void, StreamError>>
Declaring type: GZipStream
Module: System.IO.Compression
Assembly: System.Runtime.dll
Source file: GZipStream.rvn
Implements OutputStream.Write
Compresses the full range in bounded 16384-byte blocks without retaining caller bytes after completion.
Parameters
| Name | Type | Description |
|---|---|---|
buffer |
Byte[] | Initialized source bytes, unchanged until the operation settles. |
offset |
Int32 | First source index. |
count |
Int32 | Bytes to compress; zero emits nothing. |
cancellationToken |
CancellationToken | Cancellation propagates through the destination; interrupted output cannot be retried. |
Return value
Task<Result<void, StreamError>>
Success or Closed, WrongAccess, InvalidRange, IoFailure or an underlying output error.