MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetVarint64

Function GetVarint64

tensorflow/core/lib/core/coding.cc:194–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194bool 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

Callers 2

DecodeFromMethod · 0.85
DecodeMethod · 0.85

Calls 3

GetVarint64PtrFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected