lzlib-1.0.7.0: lzlib bindings

Safe HaskellNone
LanguageHaskell2010

Codec.Lzip

Contents

Description

Functions throw LZErrno on failure

Compression functions should work on arbitrary data

Synopsis

Compression

compressSz Source #

Arguments

:: ByteString 
-> Int

Size of input data, in bytes

-> ByteString 

Alias for compressWithSz Six

Since: 1.0.2.0

compressSzBest Source #

Arguments

:: ByteString 
-> Int

Size of input data, in bytes

-> ByteString 

Alias for compressWithSz maxBound

Since: 1.0.2.0

compressSzFast Source #

Arguments

:: ByteString 
-> Int

Size of input data, in bytes

-> ByteString 

Alias for compressWithSz minBound

Since: 1.0.2.0

compressWithSz Source #

Arguments

:: CompressionLevel 
-> ByteString 
-> Int

Size of data being compressed, in bytes.

-> ByteString 

Since: 1.0.0.0

compressFile :: FilePath -> IO ByteString Source #

Use this to avoid forcing the whole file into memory at once

Since: 1.0.0.0

compressFineTune Source #

Arguments

:: LzOptions 
-> ByteString 
-> Int

Size of data being compressed, in bytes.

-> ByteString 

data LzOptions Source #

Constructors

LzOptions 

Decompression

decompress :: ByteString -> ByteString Source #

This does not do any error recovery; for that you should use lziprecover.

Doesn't work on empty ByteStrings

Throws LZErrno on error

Miscellany

lZApiVersion :: Integral a => a Source #

Since: 0.3.1.0