-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | LZF compression bindings. -- -- A Haskell binding to the liblzf by Marc Lehmann. LZF is a fast -- compression algorithm sacrifising compression quality for an extra bit -- of speed. The tiny library is contained in the source and statically -- linked in the Haskell library resulting in no external dependencies. -- Exposed-modules: Codec.Compression.LZF @package Codec-Compression-LZF @version 0.2 module Codec.Compression.LZF -- | Compress a block of data. The length of data is not recorded. Returns -- the length of output or 0 if it is longer than the size of the output -- buffer. compress :: Ptr a -> Int -> Ptr b -> Int -> IO Int -- | Decompress a block of data. Returns the length of data uncompressed or -- 0 on error. decompress :: Ptr a -> Int -> Ptr b -> Int -> IO Int -- | Compress a string with worst case length = original + 1. The first -- char of the string contains the length of the original. compressString :: String -> IO String -- | Decompress a string compressed with compressString. decompressString :: String -> IO String