MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / WriteGlobal

Method WriteGlobal

database.cpp:502–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500
501
502void Database::WriteGlobal(const std::string& key, const Json::Value& val)
503{
504 Json::StreamWriterBuilder builder;
505 builder["indentation"] = "";
506 string json = Json::writeString(builder, val);
507 if (!BNWriteDatabaseGlobal(m_object, key.c_str(), json.c_str()))
508 {
509 throw DatabaseException("BNWriteDatabaseGlobal");
510 }
511}
512
513
514DataBuffer Database::ReadGlobalData(const std::string& key) const

Callers

nothing calls this directly

Calls 3

writeStringFunction · 0.85
DatabaseExceptionClass · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected