Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ VarintLength
Function
VarintLength
src/leveldb/util/coding.cc:77–84 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
75
}
76
77
int VarintLength(uint64_t v) {
78
int len = 1;
79
while (v >= 128) {
80
v >>= 7;
81
len++;
82
}
83
return len;
84
}
85
86
const char* GetVarint32PtrFallback(const char* p, const char* limit,
87
uint32_t* value) {
Callers
2
TEST
Function · 0.85
Add
Method · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68