Struct lief::pe::OptionalHeader

pub struct OptionalHeader<'a> { /* private fields */ }

Implementations§

§

impl OptionalHeader<'_>

pub fn major_linker_version(&self) -> u8

pub fn minor_linker_version(&self) -> u8

pub fn sizeof_code(&self) -> u32

pub fn sizeof_initialized_data(&self) -> u32

pub fn sizeof_uninitialized_data(&self) -> u32

pub fn addressof_entrypoint(&self) -> u32

pub fn baseof_code(&self) -> u32

pub fn baseof_data(&self) -> u32

pub fn imagebase(&self) -> u64

pub fn section_alignment(&self) -> u32

pub fn file_alignment(&self) -> u32

pub fn major_operating_system_version(&self) -> u32

pub fn minor_operating_system_version(&self) -> u32

pub fn major_image_version(&self) -> u32

pub fn minor_image_version(&self) -> u32

pub fn major_subsystem_version(&self) -> u32

pub fn minor_subsystem_version(&self) -> u32

pub fn win32_version_value(&self) -> u32

pub fn sizeof_image(&self) -> u32

pub fn sizeof_headers(&self) -> u32

pub fn checksum(&self) -> u32

pub fn computed_checksum(&self) -> u32

pub fn subsystem(&self) -> u32

pub fn dll_characteristics(&self) -> u32

pub fn sizeof_stack_reserve(&self) -> u64

pub fn sizeof_stack_commit(&self) -> u64

pub fn sizeof_heap_reserve(&self) -> u64

pub fn sizeof_heap_commit(&self) -> u64

pub fn loader_flags(&self) -> u32

pub fn numberof_rva_and_size(&self) -> u32

Trait Implementations§

§

impl Debug for OptionalHeader<'_>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for OptionalHeader<'a>

§

impl<'a> !Send for OptionalHeader<'a>

§

impl<'a> !Sync for OptionalHeader<'a>

§

impl<'a> Unpin for OptionalHeader<'a>

§

impl<'a> UnwindSafe for OptionalHeader<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.