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

Function lenStrDecode

src/tendisplus/utils/string.cpp:364–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364Expected<LenStrDecodeResult> lenStrDecode(const std::string& str) {
365 return lenStrDecode(str.c_str(), str.size());
366}
367
368Expected<LenStrDecodeResult> lenStrDecode(const char* ptr, size_t max_size) {
369 auto eSize = varintDecodeFwd(reinterpret_cast<const uint8_t*>(ptr), max_size);

Callers 6

TESTFunction · 0.85
decodeMethod · 0.85
nextMethod · 0.85
nextV2Method · 0.85
headDecodeMethod · 0.85
gossipDecodeMethod · 0.85

Calls 3

varintDecodeFwdFunction · 0.85
sizeMethod · 0.80
okMethod · 0.45

Tested by 1

TESTFunction · 0.68