biohazard-1.1.0: 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
Enum Endian Source # 
Instance details

Defined in Bio.Iteratee.Bytes

Eq Endian Source # 
Instance details

Defined in Bio.Iteratee.Bytes

Methods

(==) :: Endian -> Endian -> Bool #

(/=) :: Endian -> Endian -> Bool #

Ord Endian Source # 
Instance details

Defined in Bio.Iteratee.Bytes

Show Endian Source # 
Instance details

Defined in Bio.Iteratee.Bytes

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