| 192 | } |
| 193 | |
| 194 | bool GetVarint64(StringPiece* input, uint64* value) { |
| 195 | const char* p = input->data(); |
| 196 | const char* limit = p + input->size(); |
| 197 | const char* q = GetVarint64Ptr(p, limit, value); |
| 198 | if (q == nullptr) { |
| 199 | return false; |
| 200 | } else { |
| 201 | *input = StringPiece(q, limit - q); |
| 202 | return true; |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | } // namespace core |
| 207 | } // namespace tensorflow |
no test coverage detected