iteratee-0.3.4: Iteratee-based I/O

Data.Iteratee.Binary

Contents

Description

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

endianRead3 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word32Source

read 3 bytes in an endian manner. If the first bit is set (negative), set the entire first byte so the Word32 can be properly set negative as well.