| 21 | } |
| 22 | |
| 23 | Status 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 | |
| 31 | void Footer::EncodeTo(std::string* dst) const { |
| 32 | const size_t original_size = dst->size(); |
no test coverage detected