IronSnappy 1.0.0
See the version list below for details.
dotnet add package IronSnappy --version 1.0.0
NuGet\Install-Package IronSnappy -Version 1.0.0
<PackageReference Include="IronSnappy" Version="1.0.0" />
paket add IronSnappy --version 1.0.0
#r "nuget: IronSnappy, 1.0.0"
// 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 . 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 | Versions 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. |
-
.NETStandard 2.1
- System.Memory (>= 4.5.3)
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
|
see release history - https://github.com/aloneguid/IronSnappy/releases