MCPcopy Create free account
hub / github.com/comaps/comaps / CustomKeyValue

Method CustomKeyValue

libs/indexer/custom_keyvalue.cpp:13–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13CustomKeyValue::CustomKeyValue(std::string_view buffer)
14{
15 MemReader reader(buffer.data(), buffer.size());
16 ReaderSource src(reader);
17
18 while (src.Size() > 0)
19 {
20 uint8_t const type = ReadPrimitiveFromSource<uint8_t>(src);
21 m_vals.emplace_back(type, ReadVarUint<uint64_t>(src));
22 }
23}
24
25std::string CustomKeyValue::ToString() const
26{

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
sizeMethod · 0.45
SizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected