flat-0.3.2: Principled and efficient bit-oriented binary serialization.

Safe HaskellNone
LanguageHaskell2010

Data.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