BinaryNinja::Database Class Reference

Public Member Functions

 Database (BNDatabase *database)
 
Ref< SnapshotGetSnapshot (int64_t id)
 
std::vector< Ref< Snapshot > > GetSnapshots ()
 
void SetCurrentSnapshot (int64_t id)
 
Ref< SnapshotGetCurrentSnapshot ()
 
int64_t WriteSnapshotData (std::vector< int64_t > parents, Ref< BinaryView > file, const std::string &name, const Ref< KeyValueStore > &data, bool autoSave, const std::function< bool(size_t, size_t)> &progress)
 
void TrimSnapshot (int64_t id)
 
void RemoveSnapshot (int64_t id)
 
std::vector< std::string > GetGlobalKeys () const
 
bool HasGlobal (const std::string &key) const
 
Json::Value ReadGlobal (const std::string &key) const
 
void WriteGlobal (const std::string &key, const Json::Value &val)
 
DataBuffer ReadGlobalData (const std::string &key) const
 
void WriteGlobalData (const std::string &key, const DataBuffer &val)
 
Ref< FileMetadataGetFile ()
 
Ref< KeyValueStoreReadAnalysisCache () const
 
void WriteAnalysisCache (Ref< KeyValueStore > val)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNDatabase, BNNewDatabaseReference, BNFreeDatabase >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNDatabase * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Database()

Database::Database ( BNDatabase *  database)

Member Function Documentation

◆ GetCurrentSnapshot()

Ref< Snapshot > Database::GetCurrentSnapshot ( )

◆ GetFile()

Ref< FileMetadata > Database::GetFile ( )

◆ GetGlobalKeys()

std::vector< std::string > Database::GetGlobalKeys ( ) const

◆ GetSnapshot()

Ref< Snapshot > Database::GetSnapshot ( int64_t  id)

◆ GetSnapshots()

vector< Ref< Snapshot > > Database::GetSnapshots ( )

◆ HasGlobal()

bool Database::HasGlobal ( const std::string &  key) const

◆ ReadAnalysisCache()

Ref< KeyValueStore > Database::ReadAnalysisCache ( ) const

◆ ReadGlobal()

Json::Value Database::ReadGlobal ( const std::string &  key) const

◆ ReadGlobalData()

DataBuffer Database::ReadGlobalData ( const std::string &  key) const

◆ RemoveSnapshot()

void Database::RemoveSnapshot ( int64_t  id)

◆ SetCurrentSnapshot()

void Database::SetCurrentSnapshot ( int64_t  id)

◆ TrimSnapshot()

void Database::TrimSnapshot ( int64_t  id)

◆ WriteAnalysisCache()

void Database::WriteAnalysisCache ( Ref< KeyValueStore val)

◆ WriteGlobal()

void Database::WriteGlobal ( const std::string &  key,
const Json::Value &  val 
)

◆ WriteGlobalData()

void Database::WriteGlobalData ( const std::string &  key,
const DataBuffer val 
)

◆ WriteSnapshotData()

int64_t Database::WriteSnapshotData ( std::vector< int64_t >  parents,
Ref< BinaryView file,
const std::string &  name,
const Ref< KeyValueStore > &  data,
bool  autoSave,
const std::function< bool(size_t, size_t)> &  progress 
)

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