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

Function VarintLength

tensorflow/core/lib/core/coding.cc:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127int VarintLength(uint64_t v) {
128 int len = 1;
129 while (v >= 128) {
130 v >>= 7;
131 len++;
132 }
133 return len;
134}
135
136const char* GetVarint32Ptr(const char* p, const char* limit, uint32* value) {
137 if (p < limit) {

Callers 4

EncodePyBytesArrayFunction · 0.85
VarLengthEncodingSizeFunction · 0.85
EncodeSkeletonFunction · 0.85
TF_StringEncodedSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected