decode.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/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:0x704c77730661eff4309838fc738ef615/decode_data.Codec -> @raw:0x704c77730661eff4309838fc738ef615/decode_data.Raw -> @+fuel:Nat -> @owner:Owner -> 0x704c77730661eff4309838fc738ef615/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:0x704c77730661eff4309838fc738ef615/decode_data.Codec -> @observed:Pair(Owner, 0x704c77730661eff4309838fc738ef615/decode_data.Raw) -> 0x704c77730661eff4309838fc738ef615/decode_data.Receipt<Owner>
template decode_owner source · line 13 · raw
@-Owner:Type -> @-project:(@_:Owner -> Pair(Owner, 0x704c77730661eff4309838fc738ef615/decode_data.Raw)) -> @codec:0x704c77730661eff4309838fc738ef615/decode_data.Codec -> @owner:Owner -> 0x704c77730661eff4309838fc738ef615/decode_data.Receipt<Owner>