BinaryNinja::KeyValueStore Class Reference

Public Member Functions

 KeyValueStore ()
 
 KeyValueStore (const DataBuffer &buffer)
 
 KeyValueStore (BNKeyValueStore *store)
 
std::vector< std::string > GetKeys () const
 
bool HasValue (const std::string &name) const
 
Json::Value GetValue (const std::string &name) const
 
DataBuffer GetBuffer (const std::string &name) const
 
void SetValue (const std::string &name, const Json::Value &value)
 
void SetBuffer (const std::string &name, const DataBuffer &value)
 
DataBuffer GetSerializedData () const
 
void BeginNamespace (const std::string &name)
 
void EndNamespace ()
 
bool IsEmpty () const
 
size_t ValueSize () const
 
size_t DataSize () const
 
size_t ValueStorageSize () const
 
size_t NamespaceSize () const
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNKeyValueStore, BNNewKeyValueStoreReference, BNFreeKeyValueStore >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNKeyValueStore * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ KeyValueStore() [1/3]

KeyValueStore::KeyValueStore ( )

◆ KeyValueStore() [2/3]

KeyValueStore::KeyValueStore ( const DataBuffer buffer)

◆ KeyValueStore() [3/3]

KeyValueStore::KeyValueStore ( BNKeyValueStore *  store)

Member Function Documentation

◆ BeginNamespace()

void KeyValueStore::BeginNamespace ( const std::string &  name)

◆ DataSize()

size_t KeyValueStore::DataSize ( ) const

◆ EndNamespace()

void KeyValueStore::EndNamespace ( )

◆ GetBuffer()

DataBuffer KeyValueStore::GetBuffer ( const std::string &  name) const

◆ GetKeys()

std::vector< std::string > KeyValueStore::GetKeys ( ) const

◆ GetSerializedData()

DataBuffer KeyValueStore::GetSerializedData ( ) const

◆ GetValue()

Json::Value KeyValueStore::GetValue ( const std::string &  name) const

◆ HasValue()

bool KeyValueStore::HasValue ( const std::string &  name) const

◆ IsEmpty()

bool KeyValueStore::IsEmpty ( ) const

◆ NamespaceSize()

size_t KeyValueStore::NamespaceSize ( ) const

◆ SetBuffer()

void KeyValueStore::SetBuffer ( const std::string &  name,
const DataBuffer value 
)

◆ SetValue()

void KeyValueStore::SetValue ( const std::string &  name,
const Json::Value &  value 
)

◆ ValueSize()

size_t KeyValueStore::ValueSize ( ) const

◆ ValueStorageSize()

size_t KeyValueStore::ValueStorageSize ( ) const

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