Loading...
Searching...
No Matches
BinaryNinja::FirmwareNinjaReferenceNode Class Reference

FirmwareNinjaReferenceNode is a class used to build reference trees for memory regions, functions, and data variables. More...

Detailed Description

FirmwareNinjaReferenceNode is a class used to build reference trees for memory regions, functions, and data variables.

This class is only available in the Ultimate Edition of Binary Ninja.

Public Member Functions

 FirmwareNinjaReferenceNode (BNFirmwareNinjaReferenceNode *node)
 
 ~FirmwareNinjaReferenceNode ()
 
bool IsFunction ()
 Returns true if the reference tree node contains a function.
 
bool IsDataVariable ()
 Returns true if the reference tree node contains a data variable.
 
bool HasChildren ()
 Returns true if the reference tree node contains child nodes.
 
bool GetFunction (Ref< Function > &function)
 Get the function contained in the reference tree node.
 
bool GetDataVariable (DataVariable &variable)
 Get the data variable contained in the reference tree node.
 
std::vector< Ref< FirmwareNinjaReferenceNode > > GetChildren ()
 Get the child nodes contained in the reference tree node.
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNFirmwareNinjaReferenceNode, BNNewFirmwareNinjaReferenceNodeReference, BNFreeFirmwareNinjaReferenceNode >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNFirmwareNinjaReferenceNodeGetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 
void AddRefForCallback ()
 
void ReleaseForCallback ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNFirmwareNinjaReferenceNode, BNNewFirmwareNinjaReferenceNodeReference, BNFreeFirmwareNinjaReferenceNode >
static BNFirmwareNinjaReferenceNodeGetObject (CoreRefCountObject *obj)
 
static BNFirmwareNinjaReferenceNodeGetObject (const CoreRefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNFirmwareNinjaReferenceNode, BNNewFirmwareNinjaReferenceNodeReference, BNFreeFirmwareNinjaReferenceNode >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNFirmwareNinjaReferenceNodem_object
 

Constructor & Destructor Documentation

◆ FirmwareNinjaReferenceNode()

FirmwareNinjaReferenceNode::FirmwareNinjaReferenceNode ( BNFirmwareNinjaReferenceNode * node)

◆ ~FirmwareNinjaReferenceNode()

FirmwareNinjaReferenceNode::~FirmwareNinjaReferenceNode ( )

Member Function Documentation

◆ IsFunction()

bool FirmwareNinjaReferenceNode::IsFunction ( )

Returns true if the reference tree node contains a function.

Returns
true if the reference tree node contains a function, false otherwise

◆ IsDataVariable()

bool FirmwareNinjaReferenceNode::IsDataVariable ( )

Returns true if the reference tree node contains a data variable.

Returns
true if the reference tree node contains a data variable, false otherwise

◆ HasChildren()

bool FirmwareNinjaReferenceNode::HasChildren ( )

Returns true if the reference tree node contains child nodes.

Returns
true if the reference tree node contains child nodes, false otherwise

◆ GetFunction()

bool FirmwareNinjaReferenceNode::GetFunction ( Ref< Function > & function)

Get the function contained in the reference tree node.

Parameters
functionOutput function object
Returns
true if the function was queried successfully, false if the reference tree node does not contain a function

◆ GetDataVariable()

bool FirmwareNinjaReferenceNode::GetDataVariable ( DataVariable & variable)

Get the data variable contained in the reference tree node.

Parameters
functionOutput data variable object
Returns
true if the data variable was queried successfully, false if the reference tree node does not contain a data variable

◆ GetChildren()

std::vector< Ref< FirmwareNinjaReferenceNode > > FirmwareNinjaReferenceNode::GetChildren ( )

Get the child nodes contained in the reference tree node.

Returns
Vector of child reference tree nodes