Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

LzipArchive

OfficeIMO.Archives

Namespace
OfficeIMO.Archives
Assembly
OfficeIMO.Archives
Source revision
273d35d5ba8a with working tree changes
Modifiers
static

Decompresses lzip files in managed code.

Inheritance

  • object
  • LzipArchive

Methods

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

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

Exceptions

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