Both perform the same check against the ELF magic bytes.
Parameters
data | Byte array to check. |
Returns
true if the data starts with the ELF magic number, false otherwise.
bool isElfMagic(const(ubyte)[] data) pure nothrow @nogc @safeCheck if data starts with ELF magic number.
Both perform the same check against the ELF magic bytes.
data | Byte array to check. |