MCPcopy Create free account
hub / github.com/OpenAtomFoundation/pikiwidb / PutLengthPrefixedString

Function PutLengthPrefixedString

src/pstd/src/pstd_coding.cc:85–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void PutLengthPrefixedString(std::string* dst, const std::string& value) {
86 PutVarint32(dst, value.size());
87 dst->append(value.data(), value.size());
88}
89
90int VarintLength(uint64_t v) {
91 int len = 1;

Callers 1

TEST_FFunction · 0.50

Calls 3

PutVarint32Function · 0.70
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1

TEST_FFunction · 0.40