| 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
- compressFileLevel :: CompressionLevel -> FilePath -> IO ByteString
- compressFileBest :: FilePath -> IO ByteString
- compressFileFast :: 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
compressFileLevel :: CompressionLevel -> FilePath -> IO ByteString Source #
Since: 1.0.3.0
compressFileBest :: FilePath -> IO ByteString Source #
Since: 1.0.3.0
compressFileFast :: FilePath -> IO ByteString Source #
Since: 1.0.3.0
data CompressionLevel Source #
Instances
| Enum CompressionLevel Source # | |
Defined in Codec.Lzip Methods succ :: CompressionLevel -> CompressionLevel # pred :: CompressionLevel -> CompressionLevel # toEnum :: Int -> CompressionLevel # fromEnum :: CompressionLevel -> Int # enumFrom :: CompressionLevel -> [CompressionLevel] # enumFromThen :: CompressionLevel -> CompressionLevel -> [CompressionLevel] # enumFromTo :: CompressionLevel -> CompressionLevel -> [CompressionLevel] # enumFromThenTo :: CompressionLevel -> CompressionLevel -> CompressionLevel -> [CompressionLevel] # | |
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