| 36 | } |
| 37 | |
| 38 | Status BlockHandle::DecodeFrom(StringPiece* input) { |
| 39 | if (core::GetVarint64(input, &offset_) && core::GetVarint64(input, &size_)) { |
| 40 | return Status::OK(); |
| 41 | } else { |
| 42 | return errors::DataLoss("bad block handle"); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void Footer::EncodeTo(string* dst) const { |
| 47 | #ifndef NDEBUG |
no test coverage detected