MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / VarintLength

Function VarintLength

src/leveldb/util/coding.cc:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103int VarintLength(uint64_t v) {
104 int len = 1;
105 while (v >= 128) {
106 v >>= 7;
107 len++;
108 }
109 return len;
110}
111
112const char* GetVarint32PtrFallback(const char* p,
113 const char* limit,

Callers 2

TESTFunction · 0.85
AddMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68