Giter VIP home page Giter VIP logo

snappy.jl's Introduction

Snappy - A fast compressor/decompressor

Build Status

Snappy.jl is a Julia wrapper for the snappy library - a compression/decompression library focusing on speed.

High-level Interfaces

The Snappy module exports only two functions:

  • compress(input::Vector{Uint8}) -> compressed::Vector{Uint8}
  • uncompress(input::Vector{Uint8}) -> uncompressed::Vector{Uint8}.

These functions are self-explanatory and works as such (hence, always satisfies uncompress(compress(input)) == input for any input).

Low-level Interfaces

If you digg into the module, you will find the following lower-level functions:

  • snappy_compress(input::Vector{Uint8}, compressed::Vector{Uint8}) -> (length, status)
  • snappy_uncompress(compressed::Vector{Uint8}, uncompressed::Vector{Uint8}) -> (length, status)
  • snappy_max_compressed_length(source_length::Uint) -> length
  • snappy_uncompressed_length(compressed::Vector{Uint8}) -> (length, status)
  • snappy_validate_compressed_buffer(compressed::Vector{Uint8}) -> status.

These functions have one-to-one correspondance to the C-APIs and are very thin wrappers of them, so you can consult the "snappy-c.h" header file for the documentation. Moreover, even though these functions are not exported by default, you can assume that they are stable as long as the original C-APIs are stable.

Requirements

At the current moment, the snappy library itself should be installed in advance except Mac OS X (if you are using Homebrew) and should be located where BinDeps.jl can find it automatically.

snappy.jl's People

Contributors

bicycle1885 avatar tanmaykm avatar

Watchers

James Cloos avatar  avatar  avatar

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.