MCPcopy Create free account
hub / github.com/ElementsProject/elements / PutVarint64

Function PutVarint64

src/leveldb/util/coding.cc:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void PutVarint64(std::string* dst, uint64_t v) {
67 char buf[10];
68 char* ptr = EncodeVarint64(buf, v);
69 dst->append(buf, ptr - buf);
70}
71
72void PutLengthPrefixedSlice(std::string* dst, const Slice& value) {
73 PutVarint32(dst, value.size());

Callers 3

EncodeToMethod · 0.85
TESTFunction · 0.85
EncodeToMethod · 0.85

Calls 1

EncodeVarint64Function · 0.85

Tested by 1

TESTFunction · 0.68