pub struct Unpacked<'a> { /* private fields */ }
Expand description

This class represents an unpacked AArch64 exception entry

Reference: https://learn.microsoft.com/en-us/cpp/build/arm64-exception-handling?view=msvc-170#xdata-records

Implementations§

§

impl Unpacked<'_>

pub fn xdata_rva(&self) -> u32

RVA where this unpacked data is located (usually pointing in .xdata)

pub fn version(&self) -> u32

Describes the version of the remaining .xdata.

Currently (2025-01-04), only version 0 is defined, so values of 1-3 aren’t permitted.

pub fn X(&self) -> u8

1-bit field that indicates the presence (1) or absence (0) of exception data.

pub fn E(&self) -> u8

1-bit field that indicates that information describing a single epilog is packed into the header (1) rather than requiring more scope words later (0).

pub fn epilog_count(&self) -> u16

If Unpacked::E == 0, specifies the count of the total number of epilog scopes. Otherwise, return 0

pub fn epilog_offset(&self) -> u16

If E() == 1, index of the first unwind code that describes the one and only epilog.

pub fn code_words(&self) -> u32

Number of 32-bit words needed to contain all of the unwind codes

pub fn exception_handler(&self) -> u32

Exception handler RVA (if any)

pub fn unwind_code(&self) -> &[u8]

Slices that contain the unwind codes.

pub fn epilog_scopes(&self) -> EpilogScopes<'_>

Iterator over the epilog scopes

Trait Implementations§

§

impl Debug for Unpacked<'_>

§

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

Formats the value using the given formatter. Read more
§

impl ExceptionInfo for Unpacked<'_>

§

fn rva_start(&self) -> u32

Function start address

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for Unpacked<'a>

§

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

§

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

§

impl<'a> Unpin for Unpacked<'a>

§

impl<'a> !UnwindSafe for Unpacked<'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.