Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusCore.Flat.Decoder.Run
Synopsis
- strictDecoder ∷ Get a → ByteString → Int → Either DecodeException a
- listTDecoder ∷ Get a → ByteString → IO (ListT IO a)
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