| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.Lzip
Synopsis
- compress :: ByteString -> ByteString
- compressBest :: ByteString -> ByteString
- compressFast :: ByteString -> ByteString
- compressSz :: ByteString -> Int -> ByteString
- compressSzBest :: ByteString -> Int -> ByteString
- compressSzFast :: ByteString -> Int -> ByteString
- compressWith :: CompressionLevel -> ByteString -> ByteString
- compressWithSz :: CompressionLevel -> ByteString -> Int -> ByteString
- compressFile :: FilePath -> IO ByteString
- data CompressionLevel
- decompress :: ByteString -> ByteString
- lZVersion :: String
- lZApiVersion :: Integral a => a
Compression
compress :: ByteString -> ByteString Source #
Alias for compressWith Six
compressBest :: ByteString -> ByteString Source #
Alias for compressWith Nine
Since: 0.3.2.0
compressFast :: ByteString -> ByteString Source #
Alias for compressWith Zero
Since: 0.3.2.0
Arguments
| :: ByteString | |
| -> Int | Size of input data, in bytes |
| -> ByteString |
Alias for compressWithSz Six
Since: 1.0.2.0
Arguments
| :: ByteString | |
| -> Int | Size of input data, in bytes |
| -> ByteString |
Alias for compressWithSz Nine
Since: 1.0.2.0
Arguments
| :: ByteString | |
| -> Int | Size of input data, in bytes |
| -> ByteString |
Alias for compressWithSz Zero
Since: 1.0.2.0
compressWith :: CompressionLevel -> ByteString -> ByteString Source #
Arguments
| :: CompressionLevel | |
| -> ByteString | |
| -> Int | Size of data being compressed, in bytes. |
| -> ByteString |
Since: 1.0.0.0
compressFile :: FilePath -> IO ByteString Source #
Since: 1.0.0.0
Decompression
decompress :: ByteString -> ByteString Source #
This does not do any error recovery; for that you should use lziprecover.
Doesn't work on empty ByteStrings
Miscellany
lZApiVersion :: Integral a => a Source #
Since: 0.3.1.0