Code Monkey home page Code Monkey logo

snappy.net's Introduction

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!");

snappy.net's People

Contributors

robertvazan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

snappy.net's Issues

Streams have problems disposing

Running the sample code at the bottom of your readme causes an ObjectDisposedException: Cannot access a disposed object.

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!");

at Snappy.SnappyStream.CheckStream() at Snappy.SnappyStream.EnsureCompressionMode() at Snappy.SnappyStream.Flush() at Snappy.SnappyStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at System.IO.Stream.Dispose() at FullFrameworkSnappyTest.Program.Main(String[] args) in C:\Users\xxxx\source\repos\FullFrameworkSnappyTest\Program.cs:line 19

Plans for .NET Standard support?

Hi,

I'm just wondering if there are any plans for Snappy.NET to support .NET Standard. Is this something that you've looked at but found challenges?

Edit: Ah, I've just found it'll depend on this which I think answers my question.

Crc32C.NET assembly not resolved - Unity3D

I'm trying Snappy.NET in my Unity3D project. I've got the package from NuGet and have added the NET 2.0 version to my Unity project. But I'm getting an error:

"Assembly 'Assets/Plugins/Snappy.NET.dll' will not be loaded due to errors:
Unable to resolve reference 'Crc32C.NET'. Is the assembly missing or incompatible with the current platform?"

So I got Crc32C.NET from nuget as well (1.0.5.0) and dropped it in my Unity project, but the error is persisting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.