lz4-hs-0.1.2.0: lz4 bindings for Haskell
Safe HaskellNone
LanguageHaskell2010

Codec.Lz4

Description

The functions in this module throw exceptions on error.

decompress and compress are fully lazy, i.e. memory efficient.

Synopsis

Functions for working with blocks

decompressBlockSz Source #

Arguments

:: ByteString 
-> Int

Decompressed size

-> ByteString 

Decompress a block. The size of the uncompressed data must be known.

lZ4MaxInputSize :: Integral a => a Source #

Since: 0.1.1.0

compressBlockHC Source #

Arguments

:: Int

Compression level (must be less than lZ4HCClevelMax)

-> ByteString 
-> ByteString 

Since: 0.1.1.0

lZ4HCClevelMax :: Integral a => a Source #

Since: 0.1.1.0

Functions for working with frames

compress :: ByteString -> ByteString Source #

Lazily compress a frame.

decompress :: ByteString -> ByteString Source #

Lazily decompress a frame

Version info

lZ4VersionString :: String Source #

Since: 0.1.1.0