snappy-0.2.0.4: Fast Haskell bindings to Google’s Snappy compression library.
Copyright© 2011 MailRank Inc.
LicenseApache
MaintainerARJANEN Loïc Jean David <[email protected]>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Codec.Compression.Snappy

Description

This module provides fast, pure Haskell bindings to Google’s Snappy compression and decompression library: http://github.com/google/snappy.

These functions operate on strict bytestrings, and thus use as much memory as both the entire compressed and uncompressed data.

Synopsis

Documentation

compress :: ByteString -> ByteString Source #

Compress data into the Snappy format.

decompress :: ByteString -> ByteString Source #

Decompress data in the Snappy format.

If the input is not compressed or is corrupt, an exception will be thrown.