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

Public Member Functions

 Tag (BNTag *tag)
 
 Tag (Ref< TagType > type, const std::string &data="")
 
std::string GetId () const
 
Ref< TagTypeGetType () const
 
std::string GetData () const
 
void SetData (const std::string &data)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNTag, BNNewTagReference, BNFreeTag >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNTagGetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 
void AddRefForCallback ()
 
void ReleaseForCallback ()
 

Static Public Member Functions

static BNTag ** CreateTagList (const std::vector< Ref< Tag > > &tags, size_t *count)
 
static std::vector< Ref< Tag > > ConvertTagList (BNTag **tags, size_t count)
 
static void FreeTagList (BNTag **tags, size_t count)
 
static std::vector< Ref< Tag > > ConvertAndFreeTagList (BNTag **tags, size_t count)
 
- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNTag, BNNewTagReference, BNFreeTag >
static BNTagGetObject (CoreRefCountObject *obj)
 
static BNTagGetObject (const CoreRefCountObject *obj)
 

Additional Inherited Members

- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNTag, BNNewTagReference, BNFreeTag >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNTagm_object
 

Constructor & Destructor Documentation

◆ Tag() [1/2]

Tag::Tag ( BNTag * tag)

◆ Tag() [2/2]

Tag::Tag ( Ref< TagType > type,
const std::string & data = "" )

Member Function Documentation

◆ GetId()

std::string Tag::GetId ( ) const
Returns
Unique ID of the Tag

◆ GetType()

Ref< TagType > Tag::GetType ( ) const
Returns
TagType of this tag

◆ GetData()

std::string Tag::GetData ( ) const

◆ SetData()

void Tag::SetData ( const std::string & data)

◆ CreateTagList()

BNTag ** Tag::CreateTagList ( const std::vector< Ref< Tag > > & tags,
size_t * count )
static

◆ ConvertTagList()

std::vector< Ref< Tag > > Tag::ConvertTagList ( BNTag ** tags,
size_t count )
static

◆ FreeTagList()

void Tag::FreeTagList ( BNTag ** tags,
size_t count )
static

◆ ConvertAndFreeTagList()

std::vector< Ref< Tag > > Tag::ConvertAndFreeTagList ( BNTag ** tags,
size_t count )
static