| 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 #
Encode padded value.
flatRaw :: (Flat a, AsByteString b) => a -> b #
Encode unpadded value
unflat :: (Flat a, AsByteString b) => b -> Decoded a #
Decode padded value.
unflatWith :: AsByteString b => Get a -> b -> Decoded a #
Decode padded value, using the provided unpadded decoder.
unflatRaw :: (Flat a, AsByteString b) => b -> Decoded a #
Decode unpadded value.
unflatRawWith :: AsByteString b => Get a -> b -> Decoded a #
Unflat unpadded value, using provided decoder
unflatRawWithOffset :: AsByteString b => Get a -> b -> NumBits -> Decoded a #