Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

UnixCompressArchive

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
12511d2fa560 with working tree changes
Modifiers
static

Managed decompression of a single Unix compress (.Z) stream.

Inheritance

  • object
  • UnixCompressArchive

Methods

public static long Decompress(Stream source, Stream destination, ArchiveReadOptions? options = null, CancellationToken cancellationToken = default) #

Decodes a .Z stream and returns its decoded byte count. Both streams remain open. Use archive inspection or extraction to stage output before publication.

Parameters

source System.IO.Stream required
The readable stream positioned at the Unix compress header.
destination System.IO.Stream required
The stream that receives decoded bytes.
options OfficeIMO.Archives.ArchiveReadOptions? = null optional
Optional input, decoder workspace, work and output limits.
cancellationToken System.Threading.CancellationToken = default optional
A token that cancels decompression.

Returns

long The number of decoded bytes.