carlst99.ZlibNGSharp.Native
2.1.6.1
dotnet add package carlst99.ZlibNGSharp.Native --version 2.1.6.1
NuGet\Install-Package carlst99.ZlibNGSharp.Native -Version 2.1.6.1
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="carlst99.ZlibNGSharp.Native" Version="2.1.6.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add carlst99.ZlibNGSharp.Native --version 2.1.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: carlst99.ZlibNGSharp.Native, 2.1.6.1"
#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.
// Install carlst99.ZlibNGSharp.Native as a Cake Addin #addin nuget:?package=carlst99.ZlibNGSharp.Native&version=2.1.6.1 // Install carlst99.ZlibNGSharp.Native as a Cake Tool #tool nuget:?package=carlst99.ZlibNGSharp.Native&version=2.1.6.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ZlibNGSharpMinimal
A .NET 6 C# interop wrapper for zlib-ng's basic inflate and deflate operations.
Written for and bundled with zlib-ng v2.1.6, for win-x64
and linux-x64
.
byte[] data = new byte[512];
byte[] deflated = new byte[Data.Length];
byte[] inflated = new byte[Data.Length];
for (int i = 0; i < data.Length; i++)
data[i] = (byte)(i % 8);
using ZngDeflater deflater = new();
deflater.Deflate(Data, deflated);
using ZngInflater inflater = new();
inflater.Inflate(deflated, inflated);
Installation
You can install ZlibNGSharpMinimal from NuGet.
# .NET CLI
dotnet add package carlst99.ZlibNGSharp
# Visual Studio Package Manager
Install-Package carlst99.ZlibNGSharp
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on carlst99.ZlibNGSharp.Native:
Package | Downloads |
---|---|
carlst99.ZlibNGSharp
A minimal C# interop wrapper for zlib-ng's basic deflate and inflate operations. |
GitHub repositories
This package is not used by any popular GitHub repositories.