ZlibSharp 1.2.13.1
See the version list below for details.
dotnet add package ZlibSharp --version 1.2.13.1
NuGet\Install-Package ZlibSharp -Version 1.2.13.1
<PackageReference Include="ZlibSharp" Version="1.2.13.1" />
paket add ZlibSharp --version 1.2.13.1
#r "nuget: ZlibSharp, 1.2.13.1"
// Install ZlibSharp as a Cake Addin #addin nuget:?package=ZlibSharp&version=1.2.13.1 // Install ZlibSharp as a Cake Tool #tool nuget:?package=ZlibSharp&version=1.2.13.1
Package Description
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- elskom.zlib.redist.linux (>= 1.2.13)
- elskom.zlib.redist.osx (>= 1.2.13)
- elskom.zlib.redist.win (>= 1.2.13)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added gzip support and more control over how compression/decompression is done based on the input Window Bits.
For simplicity reasons, the Window Bits are stored inside of a ZlibWindowBits enum.
Added types:
- ZlibCompressionStrategy
- ZlibWindowBits
Added members in MemoryZlib:
- IsCompressedByGZip
- Note: There is no version of the function for raw deflate streams due to the fact that they lack a header and a footer unline zlib/gzip compressed data.
- GetCompressedSize (works with deflate/zlib/gzip compressed data) No more worrying about over or even under allocating the buffers!!!
- GetDecompressedSize (works with deflate/zlib/gzip compressed data) No more worrying about over or even under allocating the buffers!!!
Changed members in MemoryZlib:
- Compress (both versions) adding optional parameters. Please recompile any existing code using these methods as the original would not be found if not recompiled.
- Decompress (both versions) adding optional parameters. Please recompile any existing code using these methods as the original would not be found if not recompiled.
Internal Changes:
- Migrated from deflateInit_/inflateInit_ to deflateInit2_/inflateInit2_ zlib apis due to needing more control over the compressed data.
The result:
- Performance improvement vs using System.IO.Compression.DeflateStream, System.IO.Compression.ZlibStream, and System.IO.Compression.GZipStream and supports more control over how to compress the data unlike those streams which lack said support.