Struct goblin::pe::exception::ExceptionData [−][src]
pub struct ExceptionData<'a> { /* fields omitted */ }
Expand description
Exception handling and stack unwind information for functions in the image.
Implementations
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>
pub fn parse_with_opts(
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 functions(&self) -> RuntimeFunctionIterator<'a>ⓘNotable traits for RuntimeFunctionIterator<'_>
impl Iterator for RuntimeFunctionIterator<'_> type Item = Result<RuntimeFunction>;
pub fn functions(&self) -> RuntimeFunctionIterator<'a>ⓘ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
.
Returns the function at the given index.
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>>
pub fn get_unwind_info(
&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>>
pub fn get_unwind_info_with_opts(
&self,
function: RuntimeFunction,
sections: &[SectionTable],
opts: &ParseOptions
) -> Result<UnwindInfo<'a>>
Resolves unwind information for the given function entry.
Trait Implementations
type Item = Result<RuntimeFunction>
type Item = Result<RuntimeFunction>
The type of the elements being iterated over.
type IntoIter = RuntimeFunctionIterator<'a>
type IntoIter = RuntimeFunctionIterator<'a>
Which kind of iterator are we turning this into?
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>