isElfMagic

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

Check if a byte array starts with the ELF magic number.

The ELF magic number is: 0x7F 'E' 'L' 'F'

Parameters

dataThe byte array to check.

Returns

true if data starts with the ELF magic number.