Safe Haskell | None |
---|---|
Language | Haskell2010 |
Block functions throw LzoError
on error.
Frame decompression may throw exceptions on encountering bad data.
Synopsis
- compress :: ByteString -> ByteString
- decompress :: ByteString -> Int -> ByteString
- compressFile :: ByteString -> ByteString
- decompressFile :: ByteString -> ByteString
- data LzoError
- lzoOk :: LzoError
- lzoError :: LzoError
- lzoOutOfMemory :: LzoError
- lzoNotCompressible :: LzoError
- lzoInputOverrun :: LzoError
- lzoOutputOverrun :: LzoError
- lzoLookbehindOverrun :: LzoError
- lzoEofNotFound :: LzoError
- lzoEInputNotConsumed :: LzoError
- lzoENotYetImplemented :: LzoError
- lzoEInvalidArgument :: LzoError
- lzoEInvalidAlignment :: LzoError
- lzoEOutputNotConsumed :: LzoError
- lzoEInternalError :: LzoError
- lzoVersion :: Word
- lzoVersionString :: String
- lzoVersionDate :: String
Block compression
compress :: ByteString -> ByteString Source #
:: ByteString | |
-> Int | Maximum bound on output bytes |
-> ByteString |
File/frame compression
compressFile :: ByteString -> ByteString Source #
Errors
Instances
Eq LzoError Source # | |
Show LzoError Source # | |
Exception LzoError Source # | |
Defined in Codec.Compression.Lzo.Block toException :: LzoError -> SomeException # fromException :: SomeException -> Maybe LzoError # displayException :: LzoError -> String # |
Version info
lzoVersion :: Word Source #
Since: 0.1.1.0
lzoVersionString :: String Source #
Since: 0.1.1.0
lzoVersionDate :: String Source #
Since: 0.1.1.0