Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DeflateM a
- runDeflateM :: DeflateM () -> ZlibDecoder
- data ZlibDecoder
- raise :: DecompressionError -> DeflateM a
- data DecompressionError
- nextBits :: (Num a, Bits a) => Int -> DeflateM a
- nextByte :: DeflateM Word8
- nextWord16 :: DeflateM Word16
- nextWord32 :: DeflateM Word32
- nextBlock :: Integral a => a -> DeflateM ByteString
- nextCode :: Show a => HuffmanTree a -> DeflateM a
- advanceToByte :: DeflateM ()
- emitByte :: Word8 -> DeflateM ()
- emitBlock :: ByteString -> DeflateM ()
- emitPastChunk :: Int -> Int64 -> DeflateM ()
- finalAdler :: DeflateM Word32
- moveWindow :: DeflateM ()
- finalize :: DeflateM ()
Documentation
runDeflateM :: DeflateM () -> ZlibDecoder Source #
data ZlibDecoder Source #
raise :: DecompressionError -> DeflateM a Source #
data DecompressionError Source #
HuffmanTreeError String | |
FormatError String | |
DecompressionError String | |
HeaderError String | |
ChecksumError String |
Instances
Eq DecompressionError Source # | |
Defined in Codec.Compression.Zlib.Monad (==) :: DecompressionError -> DecompressionError -> Bool # (/=) :: DecompressionError -> DecompressionError -> Bool # | |
Show DecompressionError Source # | |
Defined in Codec.Compression.Zlib.Monad showsPrec :: Int -> DecompressionError -> ShowS # show :: DecompressionError -> String # showList :: [DecompressionError] -> ShowS # | |
Exception DecompressionError Source # | |
Getting data from the input stream.
Aligning
advanceToByte :: DeflateM () Source #
Emitting data into the output window
emitBlock :: ByteString -> DeflateM () Source #
Getting and publishing output
moveWindow :: DeflateM () Source #