Skip to main content

read_bytecode

Function read_bytecode 

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

Deserialize and validate an .mbc buffer. The input is untrusted: every malformed input returns Err, and anything returned Ok has passed the L1 checks (§6 of the design doc).