flat-0.4.4.0.0.0.0.2: Principled and efficient bit-oriented binary serialization.
Safe Haskell None
Language Haskell2010

Flat.Run

Description

Encoding and decoding functions

Synopsis

Documentation

flat :: Flat a => a -> ByteString Source #

Encode padded value.

flatRaw :: ( Flat a, AsByteString b) => a -> b Source #

Encode unpadded value

unflat :: ( Flat a, AsByteString b) => b -> Decoded a Source #

Decode padded value.

unflatWith :: AsByteString b => Get a -> b -> Decoded a Source #

Decode padded value, using the provided unpadded decoder.

unflatRaw :: ( Flat a, AsByteString b) => b -> Decoded a Source #

Decode unpadded value.

unflatRawWith :: AsByteString b => Get a -> b -> Decoded a Source #

Unflat unpadded value, using provided decoder