# LzmaAloneArchive

Reads single LZMA-alone (.lzma) members in managed code.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[LzmaAloneArchive.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/LzmaAloneArchive.cs#L12)

**Modifiers**

static

Reads single LZMA-alone (.lzma) members in managed code.

## Inheritance

- object
- LzmaAloneArchive

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)

[LzmaAloneArchive.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/LzmaAloneArchive.cs#L12)

Decompresses one complete LZMA-alone member from the source's current position through EOF. Validates framing before writing to the destination and returns the decoded byte count. Both streams remain open.

Parameters

**source System.IO.Stream required**

**destination System.IO.Stream required**

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

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

Returns

`long`

## 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:7302E30B5C31FAAE6CE86168106692737652066FA2DB77BB39D99340CCF02B50 -->
