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

Method value

src/leveldb/db/memtable.cc:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 void Prev() override { iter_.Prev(); }
61 Slice key() const override { return GetLengthPrefixedSlice(iter_.key()); }
62 Slice value() const override {
63 Slice key_slice = GetLengthPrefixedSlice(iter_.key());
64 return GetLengthPrefixedSlice(key_slice.data() + key_slice.size());
65 }
66
67 Status status() const override { return Status::OK(); }
68

Callers

nothing calls this directly

Calls 4

GetLengthPrefixedSliceFunction · 0.70
keyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected