MCPcopy Create free account
hub / github.com/ElementsProject/elements / Property

Method Property

src/leveldb/db/corruption_test.cc:158–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 int Property(const std::string& name) {
159 std::string property;
160 int result;
161 if (db_->GetProperty(name, &property) &&
162 sscanf(property.c_str(), "%d", &result) == 1) {
163 return result;
164 } else {
165 return -1;
166 }
167 }
168
169 // Return the ith key
170 Slice Key(int i, std::string* storage) {

Callers

nothing calls this directly

Calls 1

GetPropertyMethod · 0.45

Tested by

no test coverage detected