NativeCompressions 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NativeCompressions --version 0.1.0
                    
NuGet\Install-Package NativeCompressions -Version 0.1.0
                    
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="NativeCompressions" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NativeCompressions" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="NativeCompressions" />
                    
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 NativeCompressions --version 0.1.0
                    
#r "nuget: NativeCompressions, 0.1.0"
                    
#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 NativeCompressions@0.1.0
                    
#: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=NativeCompressions&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=NativeCompressions&version=0.1.0
                    
Install as a Cake Tool

NativeCompressions

NativeCompressions is the native ZStandard and LZ4 compression library and managed binding for .NET and Unity. Compression is very important, but has not been given much importance in .NET. We chose native binding, because ZStandard and LZ4 are constantly evolving and introducing new optimizations, and pure C# port doesn't get the benefit of that. Bindings were created with performance in mind to conform to modern .NET APIs(Span, IBufferWriter, System.IO.Pipelines, and .NET 6's new Scatter/Gather I/O API) and avoid allocation and marshalling overhead.

PM> Install-Package NativeCompressions.ZStandard
PM> Install-Package NativeCompressions.LZ4

Simple API

var comp = ZStandard.Compress(input);
var bin = ZStandard.Decompress(comp);
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on NativeCompressions:

Package Downloads
UVtools.Core

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation

VKV.Compression

An extra fast red-only embedded B+ Tree based key/value database, implemented pure C#.

LeanLucene

A .NET-native full-text search engine. Segment-centric indexing, memory-mapped reads, and atomic commit semantics. Targets net10.0 and net11.0.

DryDB.Compression

An extra fast red-only embedded B+ Tree based key/value database, implemented pure C#.

ArrowNet.Compression.NativeCompressions

NativeCompressions-based optional compression codec backend for Apache Arrow .NET.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on NativeCompressions:

Repository Stars
Cysharp/NativeCompressions
NativeCompressions is the native binding and high-level API of ZStandard, LZ4 and OpenZL compression library for .NET and Unity.
guitarrapc/SkiaSharp.QrCode
High-performance QR code generation with SkiaSharp integration.
hadashiA/DryDB
An ultra fast read-only embedded B+Tree based key/value database, implemented pure C#.
Version Downloads Last Updated
0.6.1 668 5/22/2026
0.6.0 3,117 10/7/2025
0.5.0 464 10/1/2025
0.4.0 521 9/22/2025
0.3.0 645 9/17/2025
0.2.1 596 9/16/2025
0.2.0 592 9/16/2025
0.1.5 516 9/5/2025
0.1.4 437 9/5/2025
0.1.3 480 9/4/2025
0.1.2 459 9/2/2025
0.1.1 459 9/2/2025
0.1.0 477 9/1/2025