plutus-core-1.54.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Flat.Encoder.Strict

Description

Strict encoder

Synopsis

Documentation

strictEncoderNumBitsEncodingByteString Source #

Strict encoder

strictEncoderPartial Source #

Arguments

Int

the maximum size in bits of the encoding

Encoding

the encoder

→ (ByteString, NumBits)

the encoded bytestring + the actual number of encoded bits

newtype Encoding Source #

Constructors

Encoding 

Fields

sizeListWith ∷ (Foldable t1, Num t2) ⇒ (t3 → t2 → t2) → t1 t3 → t2 → t2 Source #

encodeListWith ∷ (t → Encoding) → [t] → Encoding Source #

Encode as a List

encodeArrayWith ∷ (t → Encoding) → [t] → Encoding Source #

Encode as Array

vsize ∷ (t → NumBits) → t → NumBitsNumBits Source #

csizeNumBits → t → NumBitsNumBits Source #