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

Function ringSnapshotKey

app/src/UI/Dashboard.cpp:91–94  ·  view source on GitHub ↗

* @brief Composite snapshot key: dataset uniqueIds repeat across sources, so the time-ring * snapshot must include the sourceId or two plots collapse onto one entry and the second * restore move-assigns a moved-from (null-buffer) ring, crashing appendDecimated. */

Source from the content-addressed store, hash-verified

89 * restore move-assigns a moved-from (null-buffer) ring, crashing appendDecimated.
90 */
91static qint64 ringSnapshotKey(const int sourceId, const int uniqueId)
92{
93 return (static_cast<qint64>(sourceId) << 32) | static_cast<quint32>(uniqueId);
94}
95
96//--------------------------------------------------------------------------------------------------
97// File-local helpers

Callers 4

snapshotPlotTimeRingsMethod · 0.85
restorePlotTimeRingsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected