BinaryNinja::Metadata Class Reference

Public Member Functions

 Metadata (BNMetadata *structuredData)
 
 Metadata (bool data)
 
 Metadata (const std::string &data)
 
 Metadata (uint64_t data)
 
 Metadata (int64_t data)
 
 Metadata (double data)
 
 Metadata (const std::vector< bool > &data)
 
 Metadata (const std::vector< std::string > &data)
 
 Metadata (const std::vector< uint64_t > &data)
 
 Metadata (const std::vector< int64_t > &data)
 
 Metadata (const std::vector< double > &data)
 
 Metadata (const std::vector< uint8_t > &data)
 
 Metadata (const std::vector< Ref< Metadata > > &data)
 
 Metadata (const std::map< std::string, Ref< Metadata > > &data)
 
 Metadata (MetadataType type)
 
virtual ~Metadata ()
 
bool operator== (const Metadata &rhs)
 
Ref< Metadataoperator[] (const std::string &key)
 
Ref< Metadataoperator[] (size_t idx)
 
MetadataType GetType () const
 
bool GetBoolean () const
 
std::string GetString () const
 
uint64_t GetUnsignedInteger () const
 
int64_t GetSignedInteger () const
 
double GetDouble () const
 
std::vector< bool > GetBooleanList () const
 
std::vector< std::string > GetStringList () const
 
std::vector< uint64_t > GetUnsignedIntegerList () const
 
std::vector< int64_t > GetSignedIntegerList () const
 
std::vector< double > GetDoubleList () const
 
std::vector< uint8_t > GetRaw () const
 
std::vector< Ref< Metadata > > GetArray ()
 
std::map< std::string, Ref< Metadata > > GetKeyValueStore ()
 
Ref< MetadataGet (const std::string &key)
 
bool SetValueForKey (const std::string &key, Ref< Metadata > data)
 
void RemoveKey (const std::string &key)
 
Ref< MetadataGet (size_t index)
 
bool Append (Ref< Metadata > data)
 
void RemoveIndex (size_t index)
 
size_t Size () const
 
bool IsBoolean () const
 
bool IsString () const
 
bool IsUnsignedInteger () const
 
bool IsSignedInteger () const
 
bool IsDouble () const
 
bool IsBooleanList () const
 
bool IsStringList () const
 
bool IsUnsignedIntegerList () const
 
bool IsSignedIntegerList () const
 
bool IsDoubleList () const
 
bool IsRaw () const
 
bool IsArray () const
 
bool IsKeyValueStore () const
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNMetadata, BNNewMetadataReference, BNFreeMetadata >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNMetadata * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNMetadata, BNNewMetadataReference, BNFreeMetadata >
static BNMetadata * GetObject (CoreRefCountObject *obj)
 
- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNMetadata, BNNewMetadataReference, BNFreeMetadata >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNMetadata * m_object
 

Constructor & Destructor Documentation

◆ Metadata() [1/15]

Metadata::Metadata ( BNMetadata *  structuredData)
explicit

◆ Metadata() [2/15]

Metadata::Metadata ( bool  data)
explicit

◆ Metadata() [3/15]

BinaryNinja::Metadata::Metadata ( const std::string &  data)
explicit

◆ Metadata() [4/15]

Metadata::Metadata ( uint64_t  data)
explicit

◆ Metadata() [5/15]

Metadata::Metadata ( int64_t  data)
explicit

◆ Metadata() [6/15]

Metadata::Metadata ( double  data)
explicit

◆ Metadata() [7/15]

BinaryNinja::Metadata::Metadata ( const std::vector< bool > &  data)
explicit

◆ Metadata() [8/15]

BinaryNinja::Metadata::Metadata ( const std::vector< std::string > &  data)
explicit

◆ Metadata() [9/15]

BinaryNinja::Metadata::Metadata ( const std::vector< uint64_t > &  data)
explicit

◆ Metadata() [10/15]

BinaryNinja::Metadata::Metadata ( const std::vector< int64_t > &  data)
explicit

◆ Metadata() [11/15]

BinaryNinja::Metadata::Metadata ( const std::vector< double > &  data)
explicit

◆ Metadata() [12/15]

BinaryNinja::Metadata::Metadata ( const std::vector< uint8_t > &  data)
explicit

◆ Metadata() [13/15]

Metadata::Metadata ( const std::vector< Ref< Metadata > > &  data)
explicit

◆ Metadata() [14/15]

Metadata::Metadata ( const std::map< std::string, Ref< Metadata > > &  data)
explicit

◆ Metadata() [15/15]

Metadata::Metadata ( MetadataType  type)
explicit

◆ ~Metadata()

virtual BinaryNinja::Metadata::~Metadata ( )
inlinevirtual

Member Function Documentation

◆ Append()

bool Metadata::Append ( Ref< Metadata data)

◆ Get() [1/2]

Ref< Metadata > BinaryNinja::Metadata::Get ( const std::string &  key)

◆ Get() [2/2]

Ref< Metadata > BinaryNinja::Metadata::Get ( size_t  index)

◆ GetArray()

vector< Ref< Metadata > > Metadata::GetArray ( )

◆ GetBoolean()

bool Metadata::GetBoolean ( ) const

◆ GetBooleanList()

std::vector< bool > BinaryNinja::Metadata::GetBooleanList ( ) const

◆ GetDouble()

double Metadata::GetDouble ( ) const

◆ GetDoubleList()

std::vector< double > BinaryNinja::Metadata::GetDoubleList ( ) const

◆ GetKeyValueStore()

map< string, Ref< Metadata > > Metadata::GetKeyValueStore ( )

◆ GetRaw()

vector< uint8_t > Metadata::GetRaw ( ) const

◆ GetSignedInteger()

int64_t Metadata::GetSignedInteger ( ) const

◆ GetSignedIntegerList()

std::vector< int64_t > BinaryNinja::Metadata::GetSignedIntegerList ( ) const

◆ GetString()

string Metadata::GetString ( ) const

◆ GetStringList()

std::vector< std::string > BinaryNinja::Metadata::GetStringList ( ) const

◆ GetType()

MetadataType Metadata::GetType ( ) const

◆ GetUnsignedInteger()

uint64_t Metadata::GetUnsignedInteger ( ) const

◆ GetUnsignedIntegerList()

std::vector< uint64_t > BinaryNinja::Metadata::GetUnsignedIntegerList ( ) const

◆ IsArray()

bool Metadata::IsArray ( ) const

◆ IsBoolean()

bool Metadata::IsBoolean ( ) const

◆ IsBooleanList()

bool BinaryNinja::Metadata::IsBooleanList ( ) const

◆ IsDouble()

bool Metadata::IsDouble ( ) const

◆ IsDoubleList()

bool BinaryNinja::Metadata::IsDoubleList ( ) const

◆ IsKeyValueStore()

bool Metadata::IsKeyValueStore ( ) const

◆ IsRaw()

bool Metadata::IsRaw ( ) const

◆ IsSignedInteger()

bool Metadata::IsSignedInteger ( ) const

◆ IsSignedIntegerList()

bool BinaryNinja::Metadata::IsSignedIntegerList ( ) const

◆ IsString()

bool Metadata::IsString ( ) const

◆ IsStringList()

bool BinaryNinja::Metadata::IsStringList ( ) const

◆ IsUnsignedInteger()

bool Metadata::IsUnsignedInteger ( ) const

◆ IsUnsignedIntegerList()

bool BinaryNinja::Metadata::IsUnsignedIntegerList ( ) const

◆ operator==()

bool Metadata::operator== ( const Metadata rhs)

◆ operator[]() [1/2]

Ref< Metadata > Metadata::operator[] ( const std::string &  key)

◆ operator[]() [2/2]

Ref< Metadata > Metadata::operator[] ( size_t  idx)

◆ RemoveIndex()

void Metadata::RemoveIndex ( size_t  index)

◆ RemoveKey()

void Metadata::RemoveKey ( const std::string &  key)

◆ SetValueForKey()

bool Metadata::SetValueForKey ( const std::string &  key,
Ref< Metadata data 
)

◆ Size()

size_t Metadata::Size ( ) const

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