Skip to main content

parse_unif

Function parse_unif 

Source
pub fn parse_unif(bytes: &[u8]) -> Result<UnifImage, UnifError>
Expand description

Parse a UNIF container into a resolved UnifImage.

ยงErrors

Returns UnifError for a bad magic, a truncated header, a chunk whose declared length overruns the file, a missing MAPR chunk, or a board name that does not resolve to a known/implemented mapper. Never panics on malformed input.