MCPcopy Create free account
hub / github.com/chen3feng/toft / PutLengthPrefixedStringPiece

Method PutLengthPrefixedStringPiece

encoding/varint.cpp:78–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void Varint::PutLengthPrefixedStringPiece(std::string* dst, const StringPiece& value) {
79 Put32(dst, value.size());
80 dst->append(value.data(), value.size());
81}
82
83char* Varint::PutLengthPrefixedStringPiece(char* p,
84 char* limit,

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected