MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / dictionaryLookup

Function dictionaryLookup

pj_datastore/src/encoding.cpp:339–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339std::string_view dictionaryLookup(const DictionaryEncoded& encoded, std::size_t row) {
340 uint32_t index = readIndex(encoded.indices.data(), row, encoded.index_bytes);
341 if (index >= encoded.dictionary.size()) {
342 return {};
343 }
344 return encoded.dictionary[index];
345}
346
347// ---------------------------------------------------------------------------
348// Packed bools

Callers 2

readStringMethod · 0.85
TESTFunction · 0.85

Calls 3

readIndexFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68