Skip to main content

is_elf

Function is_elf 

Source
pub fn is_elf(bytes: &[u8]) -> bool
Expand description

Returns true if bytes start with the ELF magic.

This says nothing about class (32 vs 64) or endianness — a true return means some flavor of ELF, not necessarily one this crate supports.