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

Method hotpathRxSourceFrame

app/src/DataModel/FrameBuilder.cpp:687–702  ·  view source on GitHub ↗

* @brief Per-source variant of hotpathRxFrame -- routes data through the matching source parser. */

Source from the content-addressed store, hash-verified

685 * @brief Per-source variant of hotpathRxFrame -- routes data through the matching source parser.
686 */
687void DataModel::FrameBuilder::hotpathRxSourceFrame(int sourceId, const IO::CapturedDataPtr& data)
688{
689 Q_ASSERT(sourceId >= 0);
690 Q_ASSERT(data);
691 Q_ASSERT(!data->data.isEmpty());
692
693 if (m_operationMode != SerialStudio::ProjectFile) {
694 hotpathRxFrame(data);
695 return;
696 }
697
698 if (m_captureLatestFrame) [[unlikely]]
699 captureLatestChunk(sourceId, data);
700
701 parseProjectFrame(sourceId, data);
702}
703
704//--------------------------------------------------------------------------------------------------
705// Private slots

Callers 3

processPayloadMethod · 0.80
onFrameReadyMethod · 0.80

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected