mutable-iter-0.2: iteratees based upon mutable buffers

Data.MutableIter.Binary

Contents

Description

Iteratees for parsing binary data.

Synopsis

Types

data Endian

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 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r 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.