Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusCore.Flat.Run
Description
Encoding and decoding functions
Synopsis
- flat ∷ Flat a ⇒ a → ByteString
- flatRaw ∷ (Flat a, AsByteString b) ⇒ a → b
- unflat ∷ (Flat a, AsByteString b) ⇒ b → Decoded a
- unflatWith ∷ AsByteString b ⇒ Get a → b → Decoded a
- unflatRaw ∷ (Flat a, AsByteString b) ⇒ b → Decoded a
- unflatRawWith ∷ AsByteString b ⇒ Get a → b → Decoded a
- unflatRawWithOffset ∷ AsByteString b ⇒ Get a → b → NumBits → Decoded a
Documentation
flat ∷ Flat a ⇒ a → ByteString Source #
Encode padded value.
flatRaw ∷ (Flat a, AsByteString b) ⇒ a → b Source #
Encode unpadded value
unflatWith ∷ AsByteString b ⇒ Get a → b → Decoded a Source #
Decode padded value, using the provided unpadded decoder.
unflatRawWith ∷ AsByteString b ⇒ Get a → b → Decoded a Source #
Unflat unpadded value, using provided decoder
unflatRawWithOffset ∷ AsByteString b ⇒ Get a → b → NumBits → Decoded a Source #