SFrameFDE

Struct SFrameFDE 

Source
pub struct SFrameFDE {
    pub func_start_address: i32,
    pub func_size: u32,
    pub func_start_fre_off: u32,
    pub func_num_fres: u32,
    pub func_info: SFrameFDEInfo,
    pub func_rep_size: u8,
    /* private fields */
}
Expand description

Fields§

§func_start_address: i32

Signed 32-bit integral field denoting the virtual memory address of the described function,for which the SFrame FDE applies. If the flag SFRAME_F_FDE_FUNC_START_PCREL, See SFrame Flags, in the SFrame header is set, the value encoded in the sfde_func_start_address field is the offset in bytes to the function’s start address, from the SFrame sfde_func_start_address field.

§func_size: u32

Unsigned 32-bit integral field specifying the size of the function in bytes.

§func_start_fre_off: u32

Unsigned 32-bit integral field specifying the offset in bytes of the function’s first SFrame FRE in the SFrame section.

§func_num_fres: u32

Unsigned 32-bit integral field specifying the total number of SFrame FREs used for the function.

§func_info: SFrameFDEInfo

Unsigned 8-bit integral field specifying the SFrame FDE info word. See The SFrame FDE Info Word.

§func_rep_size: u8

Unsigned 8-bit integral field specifying the size of the repetitive code block for which an SFrame FDE of type SFRAME_FDE_TYPE_PCMASK is used. For example, in AMD64, the size of a pltN entry is 16 bytes.

Implementations§

Source§

impl SFrameFDE

Source

pub fn get_pc(&self, section: &SFrameSection<'_>) -> u64

Compute pc of the function

Source

pub fn iter_fre<'a>( &'a self, section: &'a SFrameSection<'a>, ) -> SFrameFREIterator<'a>

Iterate FRE entries

Source

pub fn find_fre( &self, section: &SFrameSection<'_>, pc: u64, ) -> SFrameResult<Option<SFrameFRE>>

Find FRE entry by pc

Trait Implementations§

Source§

impl Clone for SFrameFDE

Source§

fn clone(&self) -> SFrameFDE

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SFrameFDE

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for SFrameFDE

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.