MCPcopy Create free account
hub / github.com/apache/singa / Read

Method Read

src/io/lmdb_reader.cc:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool LMDBReader::Read(std::string* key, std::string* value) {
67 if (first_ != true)
68 Seek(MDB_NEXT);
69 if (valid_ == false) return false;
70 *key = string(static_cast<const char*>(mdb_key_.mv_data), mdb_key_.mv_size);
71 *value =
72 string(static_cast<const char*>(mdb_value_.mv_data), mdb_value_.mv_size);
73 first_ = false;
74 return true;
75}
76
77int LMDBReader::Count() {
78 MDB_env* env;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected