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

Method GetBuffer

database.cpp:100–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100DataBuffer KeyValueStore::GetBuffer(const std::string& name) const
101{
102 BNDataBuffer* buffer = BNGetKeyValueStoreBuffer(m_object, name.c_str());
103 if (buffer == nullptr)
104 {
105 throw DatabaseException("Unknown key");
106 }
107 return DataBuffer(buffer);
108}
109
110
111void KeyValueStore::SetValue(const std::string& name, const Json::Value& value)

Callers

nothing calls this directly

Calls 3

DatabaseExceptionClass · 0.85
c_strMethod · 0.80
DataBufferClass · 0.70

Tested by

no test coverage detected