Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type BinaryCodec a = Codec Get PutM a
- byteString :: Int -> BinaryCodec ByteString
- toLazyByteString :: BinaryCodec a -> ConcreteCodec ByteString (Either String) a
- word8 :: BinaryCodec Word8
- word16be :: BinaryCodec Word16
- word16le :: BinaryCodec Word16
- word16host :: BinaryCodec Word16
- word32be :: BinaryCodec Word32
- word32le :: BinaryCodec Word32
- word32host :: BinaryCodec Word32
- word64be :: BinaryCodec Word64
- word64le :: BinaryCodec Word64
- word64host :: BinaryCodec Word64
- wordhost :: BinaryCodec Word
Binary codecs
type BinaryCodec a = Codec Get PutM a Source
byteString :: Int -> BinaryCodec ByteString Source
Get/put an n-byte field.
toLazyByteString :: BinaryCodec a -> ConcreteCodec ByteString (Either String) a Source
Convert a BinaryCodec
into a ConcreteCodec
on lazy ByteString
s.