Skip to main content

decode_program

Function decode_program 

Source
pub fn decode_program(
    bytes: &[u8],
    interner: &mut Interner,
) -> Option<CompiledProgram>
Expand description

Decode an ISA frame back into an executable CompiledProgram, re-interning its symbol table against interner (which may be BRAND NEW — the frame is self-contained). Returns None on any corruption: bad magic, wrong version, checksum mismatch, or malformed payload — a corrupt frame is not a program and is rejected, never half-executed.