conduit-algorithms-0.0.14.0: Conduit-based algorithms
Safe HaskellNone
LanguageHaskell2010

Data.Conduit.Lzma2

Synopsis

Documentation

compress Source #

Arguments

:: forall (m :: Type -> Type). MonadIO m 
=> Maybe Int

Compression level from [0..9], defaults to 6.

-> ConduitM ByteString ByteString m () 

Compress a ByteString into a xz container stream.

decompress Source #

Arguments

:: forall (m :: Type -> Type). (MonadThrow m, MonadIO m) 
=> Maybe Word64

Memory limit, in bytes.

-> ConduitM ByteString ByteString m () 

Decompress a ByteString from a lzma or xz container stream.