DecodeSize.raw_size: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/decode_size.bend as DecodeSize Lines 12-18 of bendvy-ecs-core@0.1.0.3/decode_size.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/decode_size.bend&start_line=12&end_line=18 import Base import bendvy-ecs-core@0.1.0.3/decode_data.bend as D def raw_size(raw:D.Raw) -> Nat: match raw: case D.Array{[]}: 1n case D.Array{head <> rest}: Nat.add(raw_size(head),raw_size(D.Array{rest})) case D.Object{[]}: 1n case D.Object{D.Field{_,child} <> rest}: Nat.add(raw_size(child),raw_size(D.Object{rest})) case _: 1n Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/decode_data.bend&name=Field https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/decode_data.bend&name=Raw