| 64 | } |
| 65 | |
| 66 | void PutVarint64(std::string* dst, uint64_t v) { |
| 67 | char buf[10]; |
| 68 | char* ptr = EncodeVarint64(buf, v); |
| 69 | dst->append(buf, ptr - buf); |
| 70 | } |
| 71 | |
| 72 | void PutLengthPrefixedSlice(std::string* dst, const Slice& value) { |
| 73 | PutVarint32(dst, value.size()); |