MCPcopy Create free account
hub / github.com/bcndev/bytecoin / get

Method get

src/platform/DBsqlite3.cpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223bool DBsqliteKV::get(const std::string &key, common::BinaryArray &value) const {
224 auto result = ::get(stmt_get, key);
225 if (!result.first)
226 return false;
227 value.assign(result.first, result.first + result.second);
228 return true;
229}
230
231bool DBsqliteKV::get(const std::string &key, std::string &value) const {
232 auto result = ::get(stmt_get, key);

Callers 1

run_testsMethod · 0.45

Calls 1

getFunction · 0.70

Tested by

no test coverage detected