alignment

alignment (schema -- alignment)

Inputs

Outputs

alignment is a dereferenced-schema layout query. It returns the storage alignment requirement 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.

Behavior

Example

{} 0 {} [
  value: 0n8 dynamic;

  "-- same schema, same result --" printCompilerMessage
  0n8 alignment printStack _:;
  value alignment printStack _:;
  @value alignment printStack _:;

  0
] "main" exportFunction

Expected Output During Compilation

-- same schema, same result --
1nx
1nx
1nx

See also