Install
| Product | Versions |
|---|---|
| .NET Standard |
README
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);
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.