Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ PutVarint32
Function
PutVarint32
src/leveldb/util/coding.cc:49–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
}
48
49
void PutVarint32(std::string* dst, uint32_t v) {
50
char buf[5];
51
char* ptr = EncodeVarint32(buf, v);
52
dst->append(buf, ptr - buf);
53
}
54
55
char* EncodeVarint64(char* dst, uint64_t v) {
56
static const int B = 128;
Callers
5
Add
Method · 0.85
TEST
Function · 0.85
PutLengthPrefixedSlice
Function · 0.85
EncodeKey
Function · 0.85
EncodeTo
Method · 0.85
Calls
1
EncodeVarint32
Function · 0.85
Tested by
1
TEST
Function · 0.68