isElfMagic

fnbool isElfMagic(const(ubyte)[] data) pure nothrow @nogc @safe

Check if data starts with ELF magic number.

Note

An equivalent function also exists in ddn, elf, io.

Both perform the same check against the ELF magic bytes.

Parameters

dataByte array to check.

Returns

true if the data starts with the ELF magic number, false otherwise.