# UnixCompressArchive

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

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[UnixCompressArchive.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/UnixCompressArchive.cs#L16)

**Modifiers**

static

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

## Inheritance

- object
- UnixCompressArchive

Filter members 

Show inherited

## Methods

`public static long Decompress(Stream source, Stream destination, ArchiveReadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-decompress-io-stream-io-stream-officeimo-archives-archivereadoptions-threading-cancellationtoken)

[UnixCompressArchive.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/UnixCompressArchive.cs#L16)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:D480CC963C7B1009611F40E2BA2E0880C14F61A982F3E8CC5A5A1D1E406CC81D -->
