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

Function GetVarint32Ptr

tensorflow/core/lib/core/coding.cc:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136const char* GetVarint32Ptr(const char* p, const char* limit, uint32* value) {
137 if (p < limit) {
138 uint32 result = *(reinterpret_cast<const unsigned char*>(p));
139 if ((result & 128) == 0) {
140 *value = result;
141 return p + 1;
142 }
143 }
144 return GetVarint32PtrFallback(p, limit, value);
145}
146
147const char* GetVarint32PtrFallback(const char* p, const char* limit,
148 uint32* value) {

Callers 4

TESTFunction · 0.85
GetVarint32Function · 0.85
DecodeEntryFunction · 0.85
ReadVarint32Method · 0.85

Calls 1

GetVarint32PtrFallbackFunction · 0.85

Tested by 1

TESTFunction · 0.68