binary.align()
Reports native alignment.
Signature
binary.align(value_or_descriptor)
Parameters
Packed value or supported descriptor/layout.
Returns
Alignment in bytes.
Behavior
Reads the element layout for packed arrays.
Errors
Invalid descriptor or record layout.
Example
use binary
assert(binary.align(u8) == 1)