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

Method SetValue

database.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111void KeyValueStore::SetValue(const std::string& name, const Json::Value& value)
112{
113 Json::StreamWriterBuilder builder;
114 builder["indentation"] = "";
115 string json = Json::writeString(builder, value);
116 if (!BNSetKeyValueStoreValue(m_object, name.c_str(), json.c_str()))
117 {
118 throw DatabaseException("BNSetKeyValueStoreValue");
119 }
120}
121
122
123void KeyValueStore::SetBuffer(const std::string& name, const DataBuffer& value)

Callers

nothing calls this directly

Calls 3

writeStringFunction · 0.85
DatabaseExceptionClass · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected