Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 1.15 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.15 KB

Snappy for .NET

UNMAINTAINED: This library is no longer maintained, because I rarely use Windows or C++ these days. It has not been updated in years. You are welcome to adopt the library if you find it useful.

Snappy.NET is a .NET wrapper for Snappy compression algorithm. It includes raw block compression as well as an implementation of Snappy framing format.


using (var file = File.OpenWrite("mydata.sz"))
using (var compressor = new SnappyStream(file, CompressionMode.Compress))
using (var writer = new StreamWriter(compressor))
    writer.WriteLine("Hello World!");