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

Function GetVarint32

tensorflow/core/lib/core/coding.cc:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool GetVarint32(StringPiece* input, uint32* value) {
166 const char* p = input->data();
167 const char* limit = p + input->size();
168 const char* q = GetVarint32Ptr(p, limit, value);
169 if (q == nullptr) {
170 return false;
171 } else {
172 *input = StringPiece(q, limit - q);
173 return true;
174 }
175}
176
177const char* GetVarint64Ptr(const char* p, const char* limit, uint64* value) {
178 uint64 result = 0;

Callers 2

DecodeStringListFunction · 0.85
ReadSizesMethod · 0.85

Calls 3

GetVarint32PtrFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected