Skip to main content

parse_prefix

Function parse_prefix 

Source
pub fn parse_prefix(bytes: &[u8]) -> Result<Program<'_>, Error>
Expand description

Read the advertised first container, keeping every offset relative to it. Refuses unsupported profiles/revisions, out-of-bounds or overlapping fixed structures, invalid booleans, unterminated strings, and invalid constants.