Struct p8n_types::Content

source ·
pub struct Content {
    pub machine: Machine,
    pub entry_points: Vec<Pointer>,
    pub segments: Vec<Region>,
    pub symbolic: Vec<Pointer>,
}
Expand description

Binary file meta information. Starting point for disassembler routines.

Fields

machine: Machine

CPU ISA

entry_points: Vec<Pointer>

Public functions

segments: Vec<Region>

Regions

symbolic: Vec<Pointer>

Imported functions

Implementations

Load an ELF or PE file from disk and creates a Project from it. Returns the Project instance and the CPU its intended for.

Load all programs inside a ELF or PE file.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.