MCPcopy 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
77int VarintLength(uint64_t v) {
78 int len = 1;
79 while (v >= 128) {
80 v >>= 7;
81 len++;
82 }
83 return len;
84}
85
86const char* GetVarint32PtrFallback(const char* p, const char* limit,
87 uint32_t* value) {

Callers 2

TESTFunction · 0.85
AddMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68