| 131 | } |
| 132 | |
| 133 | bool GetVarint64(Slice* input, uint64_t* value) { |
| 134 | const char* p = input->data(); |
| 135 | const char* limit = p + input->size(); |
| 136 | const char* q = GetVarint64Ptr(p, limit, value); |
| 137 | if (q == nullptr) { |
| 138 | return false; |
| 139 | } else { |
| 140 | *input = Slice(q, limit - q); |
| 141 | return true; |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | const char* GetLengthPrefixedSlice(const char* p, const char* limit, |
| 146 | Slice* result) { |
no test coverage detected