ZstdNet 1.4.5

Zstd compression library wrapper for .NET

Install-Package ZstdNet -Version 1.4.5
dotnet add package ZstdNet --version 1.4.5
<PackageReference Include="ZstdNet" Version="1.4.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZstdNet --version 1.4.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZstdNet, 1.4.5"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ZstdNet as a Cake Addin
#addin nuget:?package=ZstdNet&version=1.4.5

// Install ZstdNet as a Cake Tool
#tool nuget:?package=ZstdNet&version=1.4.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Main changes:
* libzstd v1.4.5
* Span support (#19)
* Streaming support (#18)
* Advanced parameters APIs support

Some other changes:
* `libzstd.dll` now cross-compiled using `(i686|x86_64)-w64-mingw32-gcc -DZSTD_MULTITHREAD -DZSTD_LEGACY_SUPPORT=0 -pthread -s` instead of `msvc` for performance reasons
* `ZstdException` error codes exposed
* On buffers close to 2GB `Wrap` now tries its best, but if source is uncompressible and the size is too large, `ZstdException` with `ZSTD_error_dstSize_tooSmall` will be thrown (#21)
* Buffer pooling on `Wrap` without `dst` param

Possibly breaking changes:
* `Decompressor.GetDecompressedSize()` now throws `ZstdException` instead of returning `0` on error
* `ZstdException` with error code `ZSTD_error_dstSize_tooSmall` instead of `InsufficientMemoryException` on `Wrap` if destination buffer too small
* `ZstdException` with error code `ZSTD_error_dstSize_tooSmall` instead of `ArgumentOutOfRangeException` on `Unwrap` if destination buffer too small

NuGet packages (4)

Showing the top 4 NuGet packages that depend on ZstdNet:

Package Downloads
Pulsar.Client
.NET client library for Apache Pulsar
SharpPulsar
SharpPulsar is Apache Pulsar Client built using Akka.net
EasyCompressor.Zstd
A compression library that implements many compression algorithms such as LZ4, Zstd, LZMA, Snappy, Brotli, GZip, and Deflate. It helps you to improve performance by reducing Memory Usage and Network Traffic for caching.
Reloaded.Messaging.Compressor.ZStandard
Basic ZStandard compression implementation for Reloaded.Messaging based off of ZstdNet.

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on ZstdNet:

Repository Stars
toddams/RazorLight
Template engine based on Microsoft's Razor parsing engine for .NET Core
overtools/OWLib
Series of programs (tools) to interact with the Overwatch files.
SCToolsfactory/SCJMapper-V2
SC Joystick Mapper (.Net 4; using sharpDX wrapper)
mjebrahimi/EasyCompressor
⚡ A compression library that implements many compression algorithms such as LZ4, Zstd, LZMA, Snappy, Brotli, GZip, and Deflate. It helps you to improve performance by reducing Memory Usage and Network Traffic for caching.

Version History

Version Downloads Last updated
1.4.5 17,671 11/29/2020
1.3.3 64,682 1/6/2018
1.3.1 5,492 8/23/2017
1.2.0 1,047 5/6/2017
1.0.0 1,653 11/7/2016