MCPcopy Create free account
hub / github.com/Tencent/MMKV / decodeOneVector

Method decodeOneVector

Core/MiniPBCoder.cpp:364–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362#endif // MMKV_HAS_CPP20
363
364vector<string> MiniPBCoder::decodeOneVector() {
365 vector<string> v;
366
367 m_inputData->readInt32();
368
369 while (!m_inputData->isAtEnd()) {
370 auto value = m_inputData->readString();
371 v.push_back(std::move(value));
372 }
373
374 return v;
375}
376
377#ifdef MMKV_HAS_CPP20
378

Callers 2

decodeVectorFunction · 0.80
decodeVectorMethod · 0.80

Calls 12

pbBoolSizeFunction · 0.85
pbFloatSizeFunction · 0.85
pbDoubleSizeFunction · 0.85
readUInt32Method · 0.80
readBoolMethod · 0.80
readInt64Method · 0.80
readUInt64Method · 0.80
readFloatMethod · 0.80
readDoubleMethod · 0.80
readInt32Method · 0.45
isAtEndMethod · 0.45
readStringMethod · 0.45

Tested by

no test coverage detected