Struct goblin::pe::exception::ExceptionData [−][src]
Exception handling and stack unwind information for functions in the image.
Implementations
impl<'a> ExceptionData<'a>
[src][−]
pub fn parse(
bytes: &'a [u8],
directory: DataDirectory,
sections: &[SectionTable],
file_alignment: u32
) -> Result<Self>
[src][−]
bytes: &'a [u8],
directory: DataDirectory,
sections: &[SectionTable],
file_alignment: u32
) -> Result<Self>
Parses exception data from the image at the given offset.
pub fn parse_with_opts(
bytes: &'a [u8],
directory: DataDirectory,
sections: &[SectionTable],
file_alignment: u32,
opts: &ParseOptions
) -> Result<Self>
[src][−]
bytes: &'a [u8],
directory: DataDirectory,
sections: &[SectionTable],
file_alignment: u32,
opts: &ParseOptions
) -> Result<Self>
Parses exception data from the image at the given offset.
pub fn len(&self) -> usize
[src][−]
The number of function entries described by this exception data.
pub fn is_empty(&self) -> bool
[src][−]
Indicating whether there are functions in this entry.
pub fn functions(&self) -> RuntimeFunctionIterator<'a>ⓘNotable traits for RuntimeFunctionIterator<'_>
impl Iterator for RuntimeFunctionIterator<'_> type Item = Result<RuntimeFunction>;
[src][−]
Notable traits for RuntimeFunctionIterator<'_>
impl Iterator for RuntimeFunctionIterator<'_> type Item = Result<RuntimeFunction>;
Iterates all function entries in order of their code offset.
To search for a function by relative instruction address, use find_function
. To resolve
unwind information, use get_unwind_info
.
pub fn get_function(&self, index: usize) -> Result<RuntimeFunction>
[src][−]
Returns the function at the given index.
pub fn find_function(&self, rva: u32) -> Result<Option<RuntimeFunction>>
[src][−]
Performs a binary search to find a function entry covering the given RVA relative to the image.
pub fn get_unwind_info(
&self,
function: RuntimeFunction,
sections: &[SectionTable]
) -> Result<UnwindInfo<'a>>
[src][−]
&self,
function: RuntimeFunction,
sections: &[SectionTable]
) -> Result<UnwindInfo<'a>>
Resolves unwind information for the given function entry.
pub fn get_unwind_info_with_opts(
&self,
function: RuntimeFunction,
sections: &[SectionTable],
opts: &ParseOptions
) -> Result<UnwindInfo<'a>>
[src][−]
&self,
function: RuntimeFunction,
sections: &[SectionTable],
opts: &ParseOptions
) -> Result<UnwindInfo<'a>>
Resolves unwind information for the given function entry.
Trait Implementations
impl Debug for ExceptionData<'_>
[src][+]
impl<'a> IntoIterator for &ExceptionData<'a>
[src][+]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExceptionData<'a>
impl<'a> Send for ExceptionData<'a>
impl<'a> Sync for ExceptionData<'a>
impl<'a> Unpin for ExceptionData<'a>
impl<'a> UnwindSafe for ExceptionData<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,