binaryninja::disassembly

Struct DisassemblyTextRenderer

source
pub struct DisassemblyTextRenderer { /* private fields */ }

Implementations§

source§

impl DisassemblyTextRenderer

source

pub unsafe fn ref_from_raw( handle: NonNull<BNDisassemblyTextRenderer>, ) -> Ref<Self>

source

pub fn from_function( func: &Function, settings: Option<&DisassemblySettings>, ) -> Ref<Self>

source

pub fn from_llil<A: Architecture, M: FunctionMutability, F: FunctionForm>( func: &LowLevelILFunction<A, M, F>, settings: Option<&DisassemblySettings>, ) -> Ref<Self>

source

pub fn from_mlil( func: &MediumLevelILFunction, settings: Option<&DisassemblySettings>, ) -> Ref<Self>

source

pub fn from_hlil( func: &HighLevelILFunction, settings: Option<&DisassemblySettings>, ) -> Ref<Self>

source

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

source

pub fn llil<M: FunctionMutability, F: FunctionForm>( &self, ) -> Ref<LowLevelILFunction<CoreArchitecture, M, F>>

source

pub fn mlil(&self) -> Ref<MediumLevelILFunction>

source

pub fn hlil(&self) -> Ref<HighLevelILFunction>

source

pub fn basic_block(&self) -> Option<Ref<BasicBlock<NativeBlock>>>

source

pub fn set_basic_block(&self, value: Option<&BasicBlock<NativeBlock>>)

source

pub fn arch(&self) -> CoreArchitecture

source

pub fn set_arch(&self, value: CoreArchitecture)

source

pub fn settings(&self) -> Ref<DisassemblySettings>

source

pub fn set_settings(&self, settings: Option<&DisassemblySettings>)

source

pub fn is_il(&self) -> bool

source

pub fn has_data_flow(&self) -> bool

source

pub fn instruction_annotations(&self, addr: u64) -> Array<InstructionTextToken>

Gets the instructions annotations, like displaying register constant values.

source

pub fn instruction_text( &self, addr: u64, ) -> Option<(Array<DisassemblyTextLine>, usize)>

Gets the disassembly instruction text only, with no annotations.

source

pub fn disassembly_text( &self, addr: u64, ) -> Option<(Array<DisassemblyTextLine>, usize)>

source

pub fn is_integer_token(token_type: InstructionTextTokenType) -> bool

source

pub fn reset_deduplicated_comments(&self)

source

pub fn symbol_tokens( &self, addr: u64, size: usize, operand: Option<usize>, ) -> Option<Array<InstructionTextToken>>

source

pub fn stack_var_reference_tokens( &self, stack_ref: StackVariableReference, ) -> Array<InstructionTextToken>

source

pub fn integer_token( &self, int_token: InstructionTextToken, location: impl Into<Location>, ) -> Array<InstructionTextToken>

source

pub fn wrap_comment<S1: BnStrCompatible, S2: BnStrCompatible, S3: BnStrCompatible>( &self, cur_line: DisassemblyTextLine, comment: S1, has_auto_annotations: bool, leading_spaces: S2, indent_spaces: S3, ) -> Array<DisassemblyTextLine>

Trait Implementations§

source§

impl ToOwned for DisassemblyTextRenderer

source§

type Owned = Ref<DisassemblyTextRenderer>

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. 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>,

source§

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>,

source§

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.