Iteratees for parsing binary data.
- data Endian
- endianRead2 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r Word8) m Word16
- endianRead3 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r Word8) m Word32
- endianRead4 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r Word8) m Word32
Types
data Endian
Indicate endian-ness.
Endian multi-byte iteratees
endianRead2 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r Word8) m Word16Source
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.
endianRead4 :: MonadCatchIO m => Endian -> MIteratee (IOBuffer r Word8) m Word32Source