Skip to main content

describe_bytecode

Function describe_bytecode 

Source
pub fn describe_bytecode(buf: &[u8]) -> Result<SnapshotLayout, SnapshotError>
Expand description

Annotate every byte of a validated .mbc buffer.

The buffer is untrusted input; it is validated with read_bytecode before the annotating walk, so any Err here carries the same SnapshotError the loader would report.