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

Method value

src/leveldb/db/version_set.cc:194–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 return (*flist_)[index_]->largest.Encode();
193 }
194 Slice value() const override {
195 assert(Valid());
196 EncodeFixed64(value_buf_, (*flist_)[index_]->number);
197 EncodeFixed64(value_buf_ + 8, (*flist_)[index_]->file_size);
198 return Slice(value_buf_, sizeof(value_buf_));
199 }
200 Status status() const override { return Status::OK(); }
201
202 private:

Callers

nothing calls this directly

Calls 2

EncodeFixed64Function · 0.85
SliceClass · 0.50

Tested by

no test coverage detected