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

Function replayTimeRing

app/src/UI/Dashboard.cpp:2427–2432  ·  view source on GitHub ↗

* @brief Replays a saved ring's samples into @p target via appendDecimated. Used when * the new ring has a different capacity / interval than the saved one. */

Source from the content-addressed store, hash-verified

2425 * the new ring has a different capacity / interval than the saved one.
2426 */
2427static void replayTimeRing(const DSP::TimeRing& saved, DSP::TimeRing& target)
2428{
2429 const std::size_t n = saved.time.size();
2430 for (std::size_t k = 0; k < n; ++k)
2431 target.appendDecimated(saved.time[k], saved.value[k]);
2432}
2433
2434/**
2435 * @brief Restores saved plot rings into the currently configured widget slots. Splices when

Callers 2

restorePlotTimeRingsMethod · 0.85

Calls 2

appendDecimatedMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected