Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
103
int VarintLength(uint64_t v) {
104
int len = 1;
105
while (v >= 128) {
106
v >>= 7;
107
len++;
108
}
109
return len;
110
}
111
112
const char* GetVarint32PtrFallback(const char* p,
113
const char* limit,
Callers
2
TEST
Function · 0.85
Add
Method · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68