~/bend-docscommunity

decode.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.7/decode.bend as Decode

3 imports
import Base
import ./decode_data.bend as D
import ./decode_size.bend as Size

Templates

template decode_budget source · line 8 · raw

@-Owner:Type -> @+codec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> @raw:0x7e321819d0ff210531780719c7674cef/decode_data.Raw -> @+fuel:Nat -> @owner:Owner -> 0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<Owner>

decode_owner uses the one Raw returned by the closed actual-owner projection. decode_budget is a trusted low-level helper taking separate Raw, fuel and owner. decode_owner derives structural fuel and does not invent a Raw-to-Owner inverse.

template decode_projected source · line 10 · raw

@-Owner:Type -> @+codec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> @observed:Pair(Owner, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw) -> 0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<Owner>

template decode_owner source · line 13 · raw

@-Owner:Type -> @-project:(@_:Owner -> Pair(Owner, 0x7e321819d0ff210531780719c7674cef/decode_data.Raw)) -> @codec:0x7e321819d0ff210531780719c7674cef/decode_data.Codec -> @owner:Owner -> 0x7e321819d0ff210531780719c7674cef/decode_data.Receipt<Owner>