AnalysisContext in binaryninja::workflow - Rust

Struct AnalysisContext

Source

pub struct AnalysisContext { /* private fields */ }
Expand description

The AnalysisContext struct is used to represent the current state of analysis for a given function. It allows direct modification of IL and other analysis information.

Implementations§

Source§

impl AnalysisContext

Source

pub fn view(&self) -> Ref<BinaryView>

BinaryView for the current AnalysisContext

Source

pub fn function(&self) -> Ref<Function>

Function for the current AnalysisContext

Source

pub unsafe fn lifted_il_function( &self, ) -> Option<Ref<LowLevelILMutableFunction>>

Source

pub fn set_lifted_il_function(&self, value: &LowLevelILRegularFunction)

Source

pub unsafe fn llil_function(&self) -> Option<Ref<LowLevelILMutableFunction>>

Source

pub fn set_llil_function(&self, value: &LowLevelILRegularFunction)

Source

pub fn mlil_function(&self) -> Option<Ref<MediumLevelILFunction>>

Source

pub fn set_mlil_function(&self, value: &MediumLevelILFunction)

Source

pub fn hlil_function(&self, full_ast: bool) -> Option<Ref<HighLevelILFunction>>

Source

pub fn inform(&self, request: &str) -> bool

Source

pub fn set_basic_blocks<I>(&self, blocks: I)

Source

pub fn get_setting_bool(&self, key: &str) -> bool

Get a boolean setting from the cached settings

Source

pub fn get_setting_double(&self, key: &str) -> f64

Get a double setting from the cached settings

Source

pub fn get_setting_int64(&self, key: &str) -> i64

Get a signed 64-bit integer setting from the cached settings

Source

pub fn get_setting_uint64(&self, key: &str) -> u64

Get an unsigned 64-bit integer setting from the cached settings

Source

pub fn get_setting_string(&self, key: &str) -> BnString

Get a string setting from the cached settings

Source

pub fn get_setting_string_list(&self, key: &str) -> Array<BnString>

Get a string list setting from the cached settings

Source

pub fn is_offset_valid(&self, offset: u64) -> bool

Source

pub fn is_offset_readable(&self, offset: u64) -> bool

Source

pub fn is_offset_writable(&self, offset: u64) -> bool

Source

pub fn is_offset_executable(&self, offset: u64) -> bool

Source

pub fn is_offset_backed_by_file(&self, offset: u64) -> bool

Source

pub fn is_offset_code_semantics(&self, offset: u64) -> bool

Source

pub fn is_offset_extern_semantics(&self, offset: u64) -> bool

Source

pub fn is_offset_writable_semantics(&self, offset: u64) -> bool

Source

pub fn is_offset_readonly_semantics(&self, offset: u64) -> bool

Source

pub fn sections(&self) -> Array<Section>

Source

pub fn section_by_name(&self, name: impl IntoCStr) -> Option<Ref<Section>>

Source

pub fn sections_at(&self, addr: u64) -> Array<Section>

Get all sections containing the given address from the cached section map.

NOTE: This is a lock-free alternative to BinaryViewExt::sections_at.

Source

pub fn start(&self) -> u64

Source

pub fn end(&self) -> u64

Source

pub fn length(&self) -> u64

Source

pub fn next_valid_offset(&self, offset: u64) -> u64

Source

pub fn next_mapped_address(&self, addr: u64, flags: &SegmentFlags) -> u64

Get the next mapped address after the given address from the cached MemoryMap.

Source

pub fn next_backed_address(&self, addr: u64, flags: &SegmentFlags) -> u64

Get the next backed address after the given address from the cached MemoryMap.

Source

pub fn segment_at(&self, addr: u64) -> Option<Ref<Segment>>

Source

pub fn mapped_address_ranges(&self) -> Array<AddressRange>

Get all mapped address ranges from the cached MemoryMap.

Source

pub fn backed_address_ranges(&self) -> Array<AddressRange>

Get all backed address ranges from the cached MemoryMap.

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for AnalysisContext

§

impl RefUnwindSafe for AnalysisContext

§

impl !Send for AnalysisContext

§

impl !Sync for AnalysisContext

§

impl Unpin for AnalysisContext

§

impl UnwindSafe for AnalysisContext

Blanket Implementations§