Struct smda::DisassemblyResult

source ·
pub struct DisassemblyResult { /* private fields */ }

Implementations§

source§

impl DisassemblyResult

source

pub fn new() -> DisassemblyResult

source

pub fn init(&mut self, bi: BinaryInfo) -> Result<()>

source

pub fn get_all_api_refs( &mut self ) -> Result<HashMap<u64, (Option<String>, Option<String>)>>

source

pub fn get_api_refs( &self, func_addr: &u64 ) -> Result<HashMap<u64, (Option<String>, Option<String>)>>

source

pub fn get_confidence_threshold(&self) -> Result<f32>

source

pub fn get_byte(&self, addr: u64) -> Result<u8>

source

pub fn get_raw_byte(&self, addr: u64) -> Result<u8>

source

pub fn get_raw_bytes(&self, offset: u64, bytes: u64) -> Result<&[u8]>

source

pub fn get_bytes(&self, addr: u64, num_bytes: u64) -> Result<&[u8]>

source

pub fn is_addr_within_memory_image(&self, offset: u64) -> Result<bool>

source

pub fn passes_code_filter(&self, address: Option<u64>) -> Result<bool>

source

pub fn dereference_dword(&self, addr: u64) -> Result<u64>

source

pub fn dereference_qword(&self, addr: u64) -> Result<u64>

source

pub fn add_code_refs(&mut self, addr_from: u64, addr_to: u64) -> Result<()>

source

pub fn add_data_refs(&mut self, addr_from: u64, addr_to: u64) -> Result<()>

source

pub fn get_blocks_as_dict( &self, function_addr: &u64 ) -> Result<HashMap<u64, Vec<(u64, String, String, Option<String>)>>>

source

pub fn transform_instruction( &self, ins_tuple: &(u64, u32, Option<String>, Option<String>, Vec<u8>) ) -> Result<(u64, String, String, Option<String>)>

source

pub fn get_block_refs(&self, func_addr: &u64) -> Result<HashMap<u64, Vec<u64>>>

source

pub fn get_in_refs(&self, func_addr: &u64) -> Result<Vec<u64>>

source

pub fn get_out_refs(&self, func_addr: &u64) -> Result<HashMap<u64, Vec<u64>>>

Trait Implementations§

source§

impl Debug for DisassemblyResult

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for DisassemblyResult

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.