MCPcopy Create free account
hub / github.com/Tencent/Tendis / lenStrEncodeSize

Function lenStrEncodeSize

src/tendisplus/utils/string.cpp:360–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360size_t lenStrEncodeSize(const std::string& val) {
361 return varintEncodeSize(val.size()) + val.size();
362}
363
364Expected<LenStrDecodeResult> lenStrDecode(const std::string& str) {
365 return lenStrDecode(str.c_str(), str.size());

Callers 3

encodeSizeMethod · 0.85
getHeaderSizeMethod · 0.85
getGossipSizeMethod · 0.85

Calls 2

varintEncodeSizeFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected