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

Function GetLevel

src/leveldb/db/version_edit.cc:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static bool GetLevel(Slice* input, int* level) {
96 uint32_t v;
97 if (GetVarint32(input, &v) && v < config::kNumLevels) {
98 *level = v;
99 return true;
100 } else {
101 return false;
102 }
103}
104
105Status VersionEdit::DecodeFrom(const Slice& src) {
106 Clear();

Callers 1

DecodeFromMethod · 0.85

Calls 1

GetVarint32Function · 0.85

Tested by

no test coverage detected