Skip to main content

detect_format

Function detect_format 

Source
pub fn detect_format(data: &[u8]) -> Option<Format>
Available on crate feature loader only.
Expand description

Attempts to detect the format of an input file (using magic bytes), whether it is an ELF kernel or an image.