MCPcopy 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
49void 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
55char* EncodeVarint64(char* dst, uint64_t v) {
56 static const int B = 128;

Callers 5

AddMethod · 0.85
TESTFunction · 0.85
PutLengthPrefixedSliceFunction · 0.85
EncodeKeyFunction · 0.85
EncodeToMethod · 0.85

Calls 1

EncodeVarint32Function · 0.85

Tested by 1

TESTFunction · 0.68