binaryninja::type_printer

Struct CoreTypePrinter

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

Implementations§

source§

impl CoreTypePrinter

source

pub fn printers() -> Array<CoreTypePrinter>

source

pub fn printer_by_name<S: BnStrCompatible>(name: S) -> Option<CoreTypePrinter>

source

pub fn name(&self) -> BnString

source

pub fn get_type_tokens<T: Into<QualifiedName>>( &self, type_: &Type, platform: &Platform, name: T, base_confidence: u8, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>

source

pub fn get_type_tokens_before_name( &self, type_: &Type, platform: &Platform, base_confidence: u8, parent_type: &Type, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>

source

pub fn get_type_tokens_after_name( &self, type_: &Type, platform: &Platform, base_confidence: u8, parent_type: &Type, escaping: TokenEscapingType, ) -> Option<Array<InstructionTextToken>>

source

pub fn get_type_string<T: Into<QualifiedName>>( &self, type_: &Type, platform: &Platform, name: T, escaping: TokenEscapingType, ) -> Option<BnString>

source

pub fn get_type_string_before_name( &self, type_: &Type, platform: &Platform, escaping: BNTokenEscapingType, ) -> Option<BnString>

source

pub fn get_type_string_after_name( &self, type_: &Type, platform: &Platform, escaping: TokenEscapingType, ) -> Option<BnString>

source

pub fn get_type_lines<T: Into<QualifiedName>>( &self, type_: &Type, types: &TypeContainer, name: T, padding_cols: isize, collapsed: bool, escaping: TokenEscapingType, ) -> Option<Array<TypeDefinitionLine>>

source

pub fn default_print_all_types<T, I>( &self, types: T, data: &BinaryView, padding_cols: isize, escaping: TokenEscapingType, ) -> Option<BnString>
where T: Iterator<Item = I>, I: Into<QualifiedNameAndType>,

Print all types to a single big string, including headers, sections, etc

  • types - All types to print
  • data - Binary View in which all the types are defined
  • padding_cols - Maximum number of bytes represented by each padding line
  • escaping - Style of escaping literals which may not be parsable
source

pub fn print_all_types<T, I>( &self, types: T, data: &BinaryView, padding_cols: isize, escaping: TokenEscapingType, ) -> Option<BnString>
where T: IntoIterator<Item = I>, I: Into<QualifiedNameAndType>,

Trait Implementations§

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.