pub struct FunctionLifterContext {
pub function: Ref<LowLevelILMutableFunction>,
pub platform: Ref<Platform>,
pub logger: Ref<Logger>,
pub blocks: Vec<Ref<BasicBlock<NativeBlock>>>,
pub no_return_calls: HashSet<Location>,
pub contextual_returns: HashMap<Location, bool>,
pub inlined_remapping: HashMap<Location, Location>,
pub user_indirect_branches: HashMap<Location, HashSet<Location>>,
pub auto_indirect_branches: HashMap<Location, HashSet<Location>>,
pub inlined_calls: HashSet<u64>,
/* private fields */
}Fields§
§function: Ref<LowLevelILMutableFunction>§platform: Ref<Platform>§logger: Ref<Logger>§blocks: Vec<Ref<BasicBlock<NativeBlock>>>§no_return_calls: HashSet<Location>§contextual_returns: HashMap<Location, bool>§inlined_remapping: HashMap<Location, Location>§user_indirect_branches: HashMap<Location, HashSet<Location>>§auto_indirect_branches: HashMap<Location, HashSet<Location>>§inlined_calls: HashSet<u64>Implementations§
Source§impl FunctionLifterContext
impl FunctionLifterContext
pub unsafe fn from_raw( function: *mut BNLowLevelILFunction, handle: *mut BNFunctionLifterContext, ) -> Self
pub fn prepare_block_translation( &self, func: &LowLevelILMutableFunction, arch: &CoreArchitecture, address: u64, )
Sourcepub fn lifter_instruction_data(&self) -> Option<LifterInstructionData>
pub fn lifter_instruction_data(&self) -> Option<LifterInstructionData>
The per-function instruction byte store populated during basic block analysis. Read it here to avoid reading the view during lifting.
pub fn get_function_arch_context<A: ArchitectureWithFunctionContext>( &self, _arch: &A, ) -> Option<&A::FunctionArchContext>
Auto Trait Implementations§
impl Freeze for FunctionLifterContext
impl RefUnwindSafe for FunctionLifterContext
impl !Send for FunctionLifterContext
impl !Sync for FunctionLifterContext
impl Unpin for FunctionLifterContext
impl UnsafeUnpin for FunctionLifterContext
impl UnwindSafe for FunctionLifterContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more