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

Method readLegacyTimestamps

app/src/MDF4/Player.cpp:830–843  ·  view source on GitHub ↗

* @brief Reads timestamps from a single legacy master-time channel into the timestamp cache. */

Source from the content-addressed store, hash-verified

828 * @brief Reads timestamps from a single legacy master-time channel into the timestamp cache.
829 */
830void MDF4::Player::readLegacyTimestamps(const std::vector<mdf::IDataGroup*>& dataGroups,
831 uint64_t legacyTimeRecId)
832{
833 for (auto* dg : dataGroups) {
834 if (!dg)
835 continue;
836
837 LegacyTimestampObserver tsObs(*dg, m_timestampCache, m_masterTimeChannel, legacyTimeRecId);
838 tsObs.AttachObserver();
839 m_reader->ReadData(*dg);
840 tsObs.DetachObserver();
841 break;
842 }
843}
844
845/**
846 * @brief Builds a sparse frame index for efficient streaming playback.

Callers

nothing calls this directly

Calls 3

AttachObserverMethod · 0.80
DetachObserverMethod · 0.80
ReadDataMethod · 0.45

Tested by

no test coverage detected