BinaryNinja::DisassemblyTextRenderer Class Reference

Public Member Functions

 DisassemblyTextRenderer (Function *func, DisassemblySettings *settings=nullptr)
 
 DisassemblyTextRenderer (LowLevelILFunction *func, DisassemblySettings *settings=nullptr)
 
 DisassemblyTextRenderer (MediumLevelILFunction *func, DisassemblySettings *settings=nullptr)
 
 DisassemblyTextRenderer (HighLevelILFunction *func, DisassemblySettings *settings=nullptr)
 
 DisassemblyTextRenderer (BNDisassemblyTextRenderer *renderer)
 
Ref< FunctionGetFunction () const
 
Ref< LowLevelILFunctionGetLowLevelILFunction () const
 
Ref< MediumLevelILFunctionGetMediumLevelILFunction () const
 
Ref< HighLevelILFunctionGetHighLevelILFunction () const
 
Ref< BasicBlockGetBasicBlock () const
 
Ref< ArchitectureGetArchitecture () const
 
Ref< DisassemblySettingsGetSettings () const
 
void SetBasicBlock (BasicBlock *block)
 
void SetArchitecture (Architecture *arch)
 
void SetSettings (DisassemblySettings *settings)
 
virtual bool IsIL () const
 
virtual bool HasDataFlow () const
 
virtual void GetInstructionAnnotations (std::vector< InstructionTextToken > &tokens, uint64_t addr)
 
virtual bool GetInstructionText (uint64_t addr, size_t &len, std::vector< DisassemblyTextLine > &lines)
 
std::vector< DisassemblyTextLinePostProcessInstructionTextLines (uint64_t addr, size_t len, const std::vector< DisassemblyTextLine > &lines, const std::string &indentSpaces="")
 
virtual bool GetDisassemblyText (uint64_t addr, size_t &len, std::vector< DisassemblyTextLine > &lines)
 
void ResetDeduplicatedComments ()
 
bool AddSymbolToken (std::vector< InstructionTextToken > &tokens, uint64_t addr, size_t size, size_t operand)
 
void AddStackVariableReferenceTokens (std::vector< InstructionTextToken > &tokens, const StackVariableReference &ref)
 
void AddIntegerToken (std::vector< InstructionTextToken > &tokens, const InstructionTextToken &token, Architecture *arch, uint64_t addr)
 
void WrapComment (DisassemblyTextLine &line, std::vector< DisassemblyTextLine > &lines, const std::string &comment, bool hasAutoAnnotations, const std::string &leadingSpaces=" ", const std::string &indentSpaces="")
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNDisassemblyTextRenderer, BNNewDisassemblyTextRendererReference, BNFreeDisassemblyTextRenderer >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNDisassemblyTextRenderer * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Static Public Member Functions

static bool IsIntegerToken (BNInstructionTextTokenType type)
 
static std::string GetDisplayStringForInteger (Ref< BinaryView > binaryView, BNIntegerDisplayType type, uint64_t value, size_t inputWidth, bool isSigned=true)
 
- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNDisassemblyTextRenderer, BNNewDisassemblyTextRendererReference, BNFreeDisassemblyTextRenderer >
static BNDisassemblyTextRenderer * GetObject (CoreRefCountObject *obj)
 

Additional Inherited Members

- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNDisassemblyTextRenderer, BNNewDisassemblyTextRendererReference, BNFreeDisassemblyTextRenderer >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNDisassemblyTextRenderer * m_object
 

Constructor & Destructor Documentation

◆ DisassemblyTextRenderer() [1/5]

DisassemblyTextRenderer::DisassemblyTextRenderer ( Function func,
DisassemblySettings settings = nullptr 
)

◆ DisassemblyTextRenderer() [2/5]

DisassemblyTextRenderer::DisassemblyTextRenderer ( LowLevelILFunction func,
DisassemblySettings settings = nullptr 
)

◆ DisassemblyTextRenderer() [3/5]

DisassemblyTextRenderer::DisassemblyTextRenderer ( MediumLevelILFunction func,
DisassemblySettings settings = nullptr 
)

◆ DisassemblyTextRenderer() [4/5]

DisassemblyTextRenderer::DisassemblyTextRenderer ( HighLevelILFunction func,
DisassemblySettings settings = nullptr 
)

◆ DisassemblyTextRenderer() [5/5]

DisassemblyTextRenderer::DisassemblyTextRenderer ( BNDisassemblyTextRenderer *  renderer)

Member Function Documentation

◆ AddIntegerToken()

void DisassemblyTextRenderer::AddIntegerToken ( std::vector< InstructionTextToken > &  tokens,
const InstructionTextToken token,
Architecture arch,
uint64_t  addr 
)

◆ AddStackVariableReferenceTokens()

void DisassemblyTextRenderer::AddStackVariableReferenceTokens ( std::vector< InstructionTextToken > &  tokens,
const StackVariableReference ref 
)

◆ AddSymbolToken()

bool DisassemblyTextRenderer::AddSymbolToken ( std::vector< InstructionTextToken > &  tokens,
uint64_t  addr,
size_t  size,
size_t  operand 
)

◆ GetArchitecture()

Ref< Architecture > DisassemblyTextRenderer::GetArchitecture ( ) const

◆ GetBasicBlock()

Ref< BasicBlock > DisassemblyTextRenderer::GetBasicBlock ( ) const

◆ GetDisassemblyText()

bool DisassemblyTextRenderer::GetDisassemblyText ( uint64_t  addr,
size_t &  len,
std::vector< DisassemblyTextLine > &  lines 
)
virtual

◆ GetDisplayStringForInteger()

string DisassemblyTextRenderer::GetDisplayStringForInteger ( Ref< BinaryView binaryView,
BNIntegerDisplayType  type,
uint64_t  value,
size_t  inputWidth,
bool  isSigned = true 
)
static

◆ GetFunction()

Ref< Function > DisassemblyTextRenderer::GetFunction ( ) const

◆ GetHighLevelILFunction()

Ref< HighLevelILFunction > DisassemblyTextRenderer::GetHighLevelILFunction ( ) const

◆ GetInstructionAnnotations()

void DisassemblyTextRenderer::GetInstructionAnnotations ( std::vector< InstructionTextToken > &  tokens,
uint64_t  addr 
)
virtual

◆ GetInstructionText()

bool DisassemblyTextRenderer::GetInstructionText ( uint64_t  addr,
size_t &  len,
std::vector< DisassemblyTextLine > &  lines 
)
virtual

◆ GetLowLevelILFunction()

Ref< LowLevelILFunction > DisassemblyTextRenderer::GetLowLevelILFunction ( ) const

◆ GetMediumLevelILFunction()

Ref< MediumLevelILFunction > DisassemblyTextRenderer::GetMediumLevelILFunction ( ) const

◆ GetSettings()

Ref< DisassemblySettings > DisassemblyTextRenderer::GetSettings ( ) const

◆ HasDataFlow()

bool DisassemblyTextRenderer::HasDataFlow ( ) const
virtual

◆ IsIL()

bool DisassemblyTextRenderer::IsIL ( ) const
virtual

◆ IsIntegerToken()

bool DisassemblyTextRenderer::IsIntegerToken ( BNInstructionTextTokenType  type)
static

◆ PostProcessInstructionTextLines()

vector< DisassemblyTextLine > DisassemblyTextRenderer::PostProcessInstructionTextLines ( uint64_t  addr,
size_t  len,
const std::vector< DisassemblyTextLine > &  lines,
const std::string &  indentSpaces = "" 
)

◆ ResetDeduplicatedComments()

void DisassemblyTextRenderer::ResetDeduplicatedComments ( )

◆ SetArchitecture()

void DisassemblyTextRenderer::SetArchitecture ( Architecture arch)

◆ SetBasicBlock()

void DisassemblyTextRenderer::SetBasicBlock ( BasicBlock block)

◆ SetSettings()

void DisassemblyTextRenderer::SetSettings ( DisassemblySettings settings)

◆ WrapComment()

void DisassemblyTextRenderer::WrapComment ( DisassemblyTextLine line,
std::vector< DisassemblyTextLine > &  lines,
const std::string &  comment,
bool  hasAutoAnnotations,
const std::string &  leadingSpaces = "  ",
const std::string &  indentSpaces = "" 
)

The documentation for this class was generated from the following files: