* @brief Per-source variant of hotpathRxFrame -- routes data through the matching source parser. */
| 685 | * @brief Per-source variant of hotpathRxFrame -- routes data through the matching source parser. |
| 686 | */ |
| 687 | void 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 |
no test coverage detected