biohazard-0.6.15: bioinformatics support library

Safe HaskellNone
LanguageHaskell2010

Bio.Iteratee.Bytes

Contents

Description

Monadic Iteratees: incremental input parsers, processors, and transformers

Iteratees for parsing binary data.

Synopsis

Types

data Endian Source

Indicate endian-ness.

Constructors

MSB

Most Significant Byte is first (big-endian)

LSB

Least Significan Byte is first (little-endian)

Instances

Endian multi-byte iteratees

endianRead3i :: Monad m => Endian -> Iteratee Bytes m Int32 Source

Read 3 bytes in an endian manner. If the first bit is set (negative), set the entire first byte so the Int32 will be negative as well.

Iteratees treating Bytes as list of Word8

takeStreamBS Source

Arguments

:: Monad m 
=> Int

number of elements to consume

-> Enumeratee Bytes Bytes m a 

Iteratees treating Bytes as list of Char