type Raw
import bendvy-ecs-core@0.1.0.3/decode_data.bend as DecodeDataimport Base
import entity_key.bend as Key
4# Raw is a typed Data description. Arbitrary affine payload ownership is a
5# separate explicit receipt; this validator never invents an inverse Raw -> C.
6type Raw is Data:
7 Missing{}
8 Null{}
9 Number{value:U32}
10 SignedInteger{negative:Bool,magnitude:Nat}
11 Float{value:F32}
12 Binary64{high:U32,low:U32}
13 BendvyText{value:String}
14 Utf16Text{units:List<&2,U32>}
15 Boolean{value:Bool}
16 Handle{namespace:U32,key:Key.Key}
17 Array{items:List<&2,Raw>}
18 Object{fields:List<&2,Field>}