Skip to main content

Module decode

Module decode 

Source
Expand description

Decoder: AINF bytes → canonical InfinityModule.

Decoding never runs on unvalidated bytes: decode validates first and returns a crate::validate::Validated internally, so a decoded module is guaranteed to satisfy every structural invariant (bounds, sorted tables, acyclicity, reachability, hash). Materialisation is a straightforward translation of validated records into the owned IR; the zero-copy path lives in crate::view for callers that do not need ownership.

Functions§

decode
Decode with default options (hash verified, canonical form not re-proved).
decode_annotations
Decode only the annotations (cheap metadata read).
decode_provenance
Decode only the provenance block (cheap metadata read).
decode_validated
Materialise an already validated image.
decode_with
Decode with explicit options.
provenance_pairs
Decode provenance entries into a stable, sorted vector of owned pairs.