| 64 | } |
| 65 | |
| 66 | bool 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 | |
| 77 | int LMDBReader::Count() { |
| 78 | MDB_env* env; |
nothing calls this directly
no outgoing calls
no test coverage detected