Soenneker.Compression.Zstandard 4.0.74

Prefix Reserved
dotnet add package Soenneker.Compression.Zstandard --version 4.0.74
                    
NuGet\Install-Package Soenneker.Compression.Zstandard -Version 4.0.74
                    
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="Soenneker.Compression.Zstandard" Version="4.0.74" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Compression.Zstandard" Version="4.0.74" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Compression.Zstandard" />
                    
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 Soenneker.Compression.Zstandard --version 4.0.74
                    
#r "nuget: Soenneker.Compression.Zstandard, 4.0.74"
                    
#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 Soenneker.Compression.Zstandard@4.0.74
                    
#: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=Soenneker.Compression.Zstandard&version=4.0.74
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Compression.Zstandard&version=4.0.74
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Compression.Zstandard

A utility library for Zstandard compression and decompression

Installation

dotnet add package Soenneker.Compression.Zstandard

Implementation notes

This package is a fully managed C# Zstandard implementation (no native libzstd, no external binaries).

Current codec status:

  • Strict Zstandard frame format writing/reading with checksum support.
  • Compression emits valid .zst frames using fast RAW/RLE block paths (single-threaded).
  • Decompression supports RAW/RLE frame blocks and validates frame checksums.
  • Compressed entropy-coded blocks are not implemented yet.

Usage

using Soenneker.Compression.Zstandard.Abstract;

// via DI
byte[] compressed = zstandardUtil.Compress(data);
byte[] decompressed = zstandardUtil.Decompress(compressed);

Allocation-free hot path:

int max = zstandardUtil.GetMaxCompressedLength(source.Length);
Span<byte> compressed = max <= 4096 ? stackalloc byte[max] : new byte[max];

if (zstandardUtil.TryCompress(source, compressed, out int compressedBytes))
{
    Span<byte> decompressed = new byte[source.Length];
    zstandardUtil.Decompress(compressed[..compressedBytes], decompressed);
}
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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.74 47 8/26/2026
4.0.73 64 8/22/2026
4.0.72 73 8/22/2026
4.0.71 86 8/18/2026
4.0.70 91 8/12/2026
4.0.69 93 8/9/2026
4.0.68 87 8/8/2026
4.0.67 95 8/8/2026
4.0.66 90 8/7/2026
4.0.65 113 7/29/2026
4.0.64 101 7/29/2026
4.0.63 97 7/29/2026
4.0.62 94 7/29/2026
4.0.61 99 7/28/2026
4.0.60 100 7/28/2026
4.0.59 103 7/19/2026
4.0.58 100 7/18/2026
4.0.57 104 7/17/2026
4.0.56 94 7/17/2026
4.0.55 101 7/16/2026
Loading failed

Updated NuGet packages