iteratee-0.2.3: Iteratee-based I/OSource codeContentsIndex
Data.Iteratee.Binary
Contents
Types
Endian multi-byte iteratees
Description
Iteratees for parsing binary data.
Synopsis
data Endian
= MSB
| LSB
endianRead2 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word16
endianRead3 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word32
endianRead4 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word32
Types
data Endian Source
Indicate endian-ness.
Constructors
MSBMost Significant Byte is first (big-endian)
LSBLeast Significan Byte is first (little-endian)
show/hide Instances
Endian multi-byte iteratees
endianRead2 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word16Source
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.
endianRead4 :: (StreamChunk s Word8, Monad m) => Endian -> IterateeG s Word8 m Word32Source
Produced by Haddock version 2.6.0