IronSnappy 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package IronSnappy --version 1.0.0                
NuGet\Install-Package IronSnappy -Version 1.0.0                
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="IronSnappy" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronSnappy --version 1.0.0                
#r "nuget: IronSnappy, 1.0.0"                
#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 IronSnappy as a Cake Addin
#addin nuget:?package=IronSnappy&version=1.0.0

// Install IronSnappy as a Cake Tool
#tool nuget:?package=IronSnappy&version=1.0.0                

This is a native .NET port of Google Snappy compression/decompression library. The only implementation that is stable, fast, up to date with latest Snappy improvements, and most importantly does not depend on native Snappy binaries. Works on Windows, Linux, MacOSX, ARM and so on.

It is originally ported from the Golang implementation because Go is much easier to understand and work with comparing to C++.

The library passes golden tests from the original implementation i.e. compares that compression/decompression is fully compatible with the original implementation.

Internally, it is using array pooling and spans for efficient memory allocation and low GC pressure.

Using

Reference the following NuGet package Nuget. You are ready to go.

To compress a buffer:

using IronSnappy;

byte[] input = File.ReadAllBytes("TestData/Mark.Twain-Tom.Sawyer.txt");
byte[] compressed = Snappy.Encode(input);

To decompress a buffer:

using IronSnappy;

byte[] input = File.ReadAllBytes("TestData/Mark.Twain-Tom.Sawyer.rawsnappy.txt")
byte[] uncompressed = Snappy.Decode(input);

Streaming Format

Streams are fully supported. To decompress use Snappy.OpenReader(Stream) and to compress Snappy.OpenWriter(Stream). Don't forget to flush ๐Ÿšฝ and dispose ๐Ÿงป!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on IronSnappy:

Package Downloads
AvroConvert

Rapid Apache Avro serializer for .NET.

Apache.Avro.File.Snappy

Snappy compression library for Apache.Avro

AirdSDK

Aird SDK for C#

Zaabee.Snappy

Helper and Extensions for IronSnappy.

Monq.Core.VictoriaMetricsClient

VictoriaMetrics client for using into Monq with cluster support.

GitHub repositories (3)

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

Repository Stars
apache/pulsar-dotpulsar
The official .NET client library for Apache Pulsar
compomics/ThermoRawFileParser
Thermo RAW file parser that runs on Linux/Mac and all other platforms that support Mono
AdrianStrugala/AvroConvert
Rapid Avro serializer for C# .NET
Version Downloads Last updated
1.3.1 553,065 1/20/2023
1.3.0 3,719,578 10/27/2020
1.2.4 14,283 6/25/2020
1.2.2 613,613 5/16/2020
1.2.1 537 5/12/2020
1.2.0 515 5/12/2020
1.1.0 57,293 2/5/2020
1.0.1 562 2/5/2020
1.0.0 526 2/4/2020