ElfFile.this

this() @disable

Default constructor - creates an empty ElfFile.

this(const(ubyte)[] data)

Constructor from byte array (non-owned reference).

Parameters

dataByte array containing ELF file data.
this(ubyte[] data)

Constructor from owned byte array (takes ownership).

Parameters

dataByte array containing ELF file data.
this(string path)

Constructor from file path.

Reads the entire file into memory.

Parameters

pathPath to the ELF file.

Throws

Exception if the file cannot be read.
this(File file)

Constructor from std.stdio.File.

Reads the entire file into memory.

Parameters

fileFile object to read from.

Throws

Exception if the file cannot be read.
this(ref ElfFile other)

Copy constructor.

Creates a new ElfFile referencing the same data (not owned).

Parameters

otherElfFile to copy from.