storageSize (schema -- size)schema: Value or Ref whose dereferenced schema determines the reported storage size.size: Storage size as known Natx.storageSize is a dereferenced-schema layout query. It returns the storage size of the dereferenced schema as known Natx.
Ref inputs are followed before the query. Current value contents, current value state, and current view qualifiers do not participate.
schema.{} 0 {} [
value: 0n8 dynamic;
pair: { left: 0n8; right: 0n8; };
"-- same schema, same result --" printCompilerMessage
0n8 storageSize printStack _:;
value storageSize printStack _:;
@value storageSize printStack _:;
"-- size versus alignment --" printCompilerMessage
pair storageSize printStack _:;
pair alignment printStack _:;
0
] "main" exportFunction
-- same schema, same result --
1nx
1nx
1nx
-- size versus alignment --
2nx
1nx
addressToReference builtin (address modelValue -- reconstructedValue) Typed reconstruction from a numeric storage address. Ref-like model values keep their schema, and direct non-Ref-like model values produce Ref results.alignment builtin (schema -- alignment) Known Natx alignment requirement of the dereferenced schema.manuallyDestroyVariable builtin (value --) Manual in-place destruction without freeing storage.manuallyInitVariable builtin (value --) Manual initialization in existing storage.storageAddress builtin (value -- address) Current stack-value storage-address query; known NIL Ref, Text, and Code values yield 0nx.