flat-0.6: Principled and efficient bit-oriented binary serialization.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Flat.Decoder.Run

Synopsis

Documentation

strictDecoder :: Get a -> ByteString -> Int -> Either DecodeException a Source #

Given a decoder and an input buffer returns either the decoded value or an error (if the input buffer is not fully consumed)

listTDecoder :: Get a -> ByteString -> IO (ListT IO a) Source #

Decode a list of values, one value at a time.

Useful in case that the decoded values takes a lot more memory than the encoded ones.

See ../test/Big.hs for a test and an example of use.

See also Flat.AsBin.

Since: 0.5