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.