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

Function PutLengthPrefixedSlice

src/leveldb/util/coding.cc:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void PutLengthPrefixedSlice(std::string* dst, const Slice& value) {
73 PutVarint32(dst, value.size());
74 dst->append(value.data(), value.size());
75}
76
77int VarintLength(uint64_t v) {
78 int len = 1;

Callers 4

TESTFunction · 0.85
PutMethod · 0.85
DeleteMethod · 0.85
EncodeToMethod · 0.85

Calls 3

PutVarint32Function · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1

TESTFunction · 0.68