Skip to main content
ZlibWithDictionary package icon

ZlibWithDictionary

This is a plain wrapper around DotNetZip that allows Deflate compression with preset dictionary. This is particularly useful for compressing small byte-sequences (diminishing returns beyond 32k) where the content being compressed follows predictable patterns such a web-service results following a known schema or html documents. The best dictionary is one that is contains substrings that are likely to occur in the input - the longer the matching substrings, and the more likely they occur in the input, the better. The only two methods provided are DeflateCompression.ZlibCompressWithDictionary and Deflate.ZlibDecompressWithDictionary (intellisense explains the parameters). Per the DotNetZip docs, this compression is compatible with the deflate RFC1950 as implemented by the common zlib library (ref: http://zlib.net). (Note that although gzip uses the same algorithm, it uses a slightly different and thus incompatible header.)

Total Downloads
95.6K
95,605
Published
Sep 5, 2016
Latest stable version

Install

.NET CLI
dotnet add package ZlibWithDictionary --version 2.1.1
Package Manager Console
Install-Package ZlibWithDictionary -Version 2.1.1
PackageReference
<PackageReference Include="ZlibWithDictionary" Version="2.1.1" />

Frameworks

No framework metadata available.

Dependencies

[1.10.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.