pub fn detect(bytes: &[u8]) -> Result<FirmwareLayout, String>Expand description
Classify a firmware file.
Err only for something that cannot be an ESP image at all; an unusual but
long-enough file is treated as an application, which is what a bare image
always is.