Skip to main content

parse_preamble

Function parse_preamble 

Source
pub fn parse_preamble<'a>(cursor: &mut Cursor<'a>) -> Result<(), DecodeError>
Expand description

Validate the WASM preamble (magic number + version), returning the cursor positioned after the 8-byte header.