MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / PutLengthPrefixedSlice

Function PutLengthPrefixedSlice

src/leveldb/util/coding.cc:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void PutLengthPrefixedSlice(std::string* dst, const Slice& value) {
99 PutVarint32(dst, value.size());
100 dst->append(value.data(), value.size());
101}
102
103int VarintLength(uint64_t v) {
104 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