pub fn peek(data: &[u8], archive: bool) -> FileFormat
Expand description

Tries to infer the object type from the start of the given buffer.

If archive is set to true, multi architecture objects will be allowed. Otherwise, only single-arch objects are checked.