iteratee-0.8.7.2: Iteratee-based I/O

Data.Iteratee.Binary

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)

Endian multi-byte iteratees

endianRead3i :: (Nullable s, ListLike s Word8, Monad m) => Endian -> Iteratee s m Int32Source

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.