Safe Haskell | None |
---|---|
Language | Haskell2010 |
Monadic Iteratees: incremental input parsers, processors, and transformers
Iteratees for parsing binary data.
- data Endian
- endianRead2 :: ListLike s Word8 => Endian -> Iteratee s m Word16
- endianRead3 :: ListLike s Word8 => Endian -> Iteratee s m Word32
- endianRead3i :: (Nullable s, ListLike s Word8, Monad m) => Endian -> Iteratee s m Int32
- endianRead4 :: ListLike s Word8 => Endian -> Iteratee s m Word32
- endianRead8 :: ListLike s Word8 => Endian -> Iteratee s m Word64
- readWord16be_bs :: Iteratee ByteString m Word16
- readWord16le_bs :: Iteratee ByteString m Word16
- readWord32be_bs :: Iteratee ByteString m Word32
- readWord32le_bs :: Iteratee ByteString m Word32
- readWord64be_bs :: Iteratee ByteString m Word64
- readWord64le_bs :: Iteratee ByteString m Word64
Types
Indicate endian-ness.
Endian multi-byte iteratees
endianRead3i :: (Nullable s, ListLike s Word8, Monad m) => Endian -> Iteratee s m Int32 Source #
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.
bytestring specializations
In current versions of iteratee
there is no difference between the
bytestring specializations and polymorphic functions. They exist
for compatibility.