Lzip.Lib 1.0.21

This package has a SemVer 2.0.0 package version: 1.0.21+7c83e63f60a60aae659471a393be0f3d0a2a6ff9.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Lzip.Lib --version 1.0.21
                    
NuGet\Install-Package Lzip.Lib -Version 1.0.21
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lzip.Lib" Version="1.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lzip.Lib" Version="1.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Lzip.Lib" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lzip.Lib --version 1.0.21
                    
#r "nuget: Lzip.Lib, 1.0.21"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lzip.Lib@1.0.21
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lzip.Lib&version=1.0.21
                    
Install as a Cake Addin
#tool nuget:?package=Lzip.Lib&version=1.0.21
                    
Install as a Cake Tool

Lzip.Lib

Pure-managed lzip (LZMA1) codec for .NET -- a fast, AOT/trim-friendly decompressor for the lzip container format, including multi-member files that are decoded in parallel. No external lzip binary required.

1.0 ships the decoder. An encoder (LZMA1 + lzip member framing + -b-style chunking) is planned for a later release.

Install

dotnet add package Lzip.Lib

Usage

using SharpAstro.Lzip;

// From a byte array:
byte[] data = LzipDecoder.Decompress(File.ReadAllBytes("catalog.lz"));

// From a stream:
using var stream = File.OpenRead("catalog.lz");
byte[] fromStream = LzipDecoder.Decompress(stream);

// Lazily as a stream:
using var decompressed = LzipDecoder.DecompressToStream(File.OpenRead("catalog.lz"));

Multi-member lzip files (e.g. produced by lzip -b) are detected and decoded across cores automatically.

Format notes

Each lzip member is a 6-byte header ("LZIP" magic + version + coded dictionary size) followed by an LZMA1 stream (fixed properties lc=3, lp=0, pb=2) and a 20-byte trailer (CRC32 of the uncompressed data + uncompressed size + member size). A multi-member file is simply independent members concatenated.

License

MIT -- see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Lzip.Lib:

Package Downloads
TianWen.Lib

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.41 131 7/4/2026
1.0.21 33 7/4/2026