bits-conduit-0.2.0.0: Bitstream support for Conduit

Safe HaskellSafe-Infered

Data.Conduit.Bits

Contents

Synopsis

Conduits

decodeBits :: Monad m => GLConduit ByteString m BoolSource

Bitstream decoder

encodeBits :: Monad m => GConduit Bool m ByteStringSource

Bitstream encoder

Functions

yieldBits :: (Bits b, Monad m) => b -> Int -> GSource m BoolSource

Yields specified amount of bits (LSB first)

awaitBits :: (Bits b, Monad m) => Int -> GSink Bool m (Maybe b)Source

await specified amount of bits (LSB first)