Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type BinaryCodec a = Codec Get PutM a
- byteString :: Int -> BinaryCodec ByteString
- 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
- int8 :: BinaryCodec Int8
- int16be :: BinaryCodec Int16
- int16le :: BinaryCodec Int16
- int16host :: BinaryCodec Int16
- int32be :: BinaryCodec Int32
- int32le :: BinaryCodec Int32
- int32host :: BinaryCodec Int32
- int64be :: BinaryCodec Int64
- int64le :: BinaryCodec Int64
- int64host :: BinaryCodec Int64
- inthost :: BinaryCodec Int
Binary codecs
byteString :: Int -> BinaryCodec ByteString Source #
Get/put an n-byte field.
word8 :: BinaryCodec Word8 Source #
int8 :: BinaryCodec Int8 Source #
inthost :: BinaryCodec Int Source #