isElfFile

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

Check if the given data represents a valid ELF file.

Parameters

dataByte array containing potential ELF file data.

Returns

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