* @brief Forwards the allocation-free span fast path to the configured template. */
| 242 | * @brief Forwards the allocation-free span fast path to the configured template. |
| 243 | */ |
| 244 | qsizetype 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. |
no test coverage detected