Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DeflateM s a
- runDeflateM :: DeflateM s () -> ST s (ZlibDecoder s)
- data ZlibDecoder s
- = NeedMore (ByteString -> ST s (ZlibDecoder s))
- | Chunk ByteString (ST s (ZlibDecoder s))
- | Done
- | DecompError DecompressionError
- raise :: DecompressionError -> DeflateM s a
- data DecompressionError
- nextBits :: (Num a, Bits a) => Int -> DeflateM s a
- nextByte :: DeflateM s Word8
- nextWord16 :: DeflateM s Word16
- nextWord32 :: DeflateM s Word32
- nextBlock :: Integral a => a -> DeflateM s ByteString
- nextCode :: Show a => HuffmanTree a -> DeflateM s a
- advanceToByte :: DeflateM s ()
- emitByte :: Word8 -> DeflateM s ()
- emitBlock :: ByteString -> DeflateM s ()
- emitPastChunk :: Int -> Int -> DeflateM s ()
- finalAdler :: DeflateM s Word32
- moveWindow :: DeflateM s ()
- finalize :: DeflateM s ()
Documentation
runDeflateM :: DeflateM s () -> ST s (ZlibDecoder s) Source #
data ZlibDecoder s Source #
NeedMore (ByteString -> ST s (ZlibDecoder s)) | |
Chunk ByteString (ST s (ZlibDecoder s)) | |
Done | |
DecompError DecompressionError |
raise :: DecompressionError -> DeflateM s 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.
nextWord16 :: DeflateM s Word16 Source #
nextWord32 :: DeflateM s Word32 Source #
Aligning
advanceToByte :: DeflateM s () Source #
Emitting data into the output window
emitBlock :: ByteString -> DeflateM s () Source #
Getting and publishing output
finalAdler :: DeflateM s Word32 Source #
moveWindow :: DeflateM s () Source #