dotnet / dotnet/runtime

Add raw LZMA1/LZMA2 support

Open
#126,053 1 comment 22 reactions 0 assignees View on GitHub
area-System.IO.Compression
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Introduce LzmaEncoder and LzmaDecoder for raw LZMA1/LZMA2 encoding and decoding. This is the low-level complement to XzEncoder/XzDecoder (which handle the XZ container format) in #1542.

Some use cases require encoding or decoding raw LZMA streams without the XZ container, and need direct control over compression parameters (lc, lp, pb, dictSize). The existing XZ-level API hides these details behind presets and doesn't support raw encoding/decoding.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.