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"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

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
.NET client library for Apache Pulsar
SharpPulsar is Apache Pulsar Client built using Akka.net
EasyCompressor is an open-source compression abstraction library that supports and implements many compression algorithms such as Zstd, LZMA, LZ4, Snappy, Brotli, GZip and Deflate. It is very useful for using along with distributed caching or storing files in database.
Basic ZStandard compression implementation for Reloaded.Messaging based off of ZstdNet.

GitHub repositories (3)

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

Repository Stars
Template engine based on Microsoft's Razor parsing engine for .NET Core
Series of programs (tools) to interact with the Overwatch files.
SC Joystick Mapper (.Net 4; using sharpDX wrapper)

Version History

Version Downloads Last updated
1.4.5 9,297 11/29/2020
1.3.3 58,719 1/6/2018
1.3.1 5,349 8/23/2017
1.2.0 1,014 5/6/2017
1.0.0 1,598 11/7/2016