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

Method DecodeFrom

src/leveldb/table/format.cc:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23Status BlockHandle::DecodeFrom(Slice* input) {
24 if (GetVarint64(input, &offset_) && GetVarint64(input, &size_)) {
25 return Status::OK();
26 } else {
27 return Status::Corruption("bad block handle");
28 }
29}
30
31void Footer::EncodeTo(std::string* dst) const {
32 const size_t original_size = dst->size();

Callers 5

OpenMethod · 0.45
ReadFilterMethod · 0.45
BlockReaderMethod · 0.45
InternalGetMethod · 0.45
ApproximateOffsetOfMethod · 0.45

Calls 7

GetVarint64Function · 0.85
OKFunction · 0.85
CorruptionFunction · 0.85
DecodeFixed32Function · 0.85
SliceClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected