# LzipArchive

Decompresses lzip files in managed code.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[XzArchive.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/XzArchive.cs#L88)

**Modifiers**

static

Decompresses lzip files in managed code.

## Inheritance

- object
- LzipArchive

Filter members 

Show inherited

## Methods

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

[XzArchive.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Archives/XzArchive.cs#L88)

Decompresses every member from the current position of source into destination, verifying each member's CRC-32, data size and member size. Data after the last member is rejected.

Parameters

**source System.IO.Stream required**

**destination System.IO.Stream required**

**options OfficeIMO.Archives.ArchiveReadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`LzipReadResult`

Exceptions

- `ArchiveCorruptionException` – The input is not lzip, is truncated, or fails a check.
- `OfficeInspectionResourceLimitException` – A configured limit is exceeded.

## 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:40EA02C8164B3120CCD95E372407A80C0E3E72D62ED2FA1CCEB3F67C85A43EA7 -->
