MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / parseUtf8Spans

Method parseUtf8Spans

app/src/DataModel/Scripting/CFrameParser.cpp:244–255  ·  view source on GitHub ↗

* @brief Forwards the allocation-free span fast path to the configured template. */

Source from the content-addressed store, hash-verified

242 * @brief Forwards the allocation-free span fast path to the configured template.
243 */
244qsizetype DataModel::CFrameParser::parseUtf8Spans(QByteArrayView frame,
245 QByteArrayView* out,
246 qsizetype maxSpans) noexcept
247{
248 Q_ASSERT(out != nullptr);
249 Q_ASSERT(maxSpans > 0);
250
251 if (!m_parser) [[unlikely]]
252 return -1;
253
254 return m_parser->parseSpans(frame, out, maxSpans);
255}
256
257/**
258 * @brief Runs the configured template over a binary frame.

Callers 1

parseSpansUtf8Method · 0.45

Calls 1

parseSpansMethod · 0.45

Tested by

no test coverage detected