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

Method SaveSample

lib/mdflib/mdflib/src/samplequeue.cpp:167–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void SampleQueue::SaveSample(const IChannelGroup& group, uint64_t time) {
168 SampleRecord sample = group.GetSampleRecord();
169 sample.timestamp = time;
170 RecalculateTime(group.RecordId(), sample);
171 AddSample(std::move(sample));
172}
173
174void SampleQueue::SaveCanMessage(const IChannelGroup& group, uint64_t time,
175 const CanMessage& msg) {

Callers

nothing calls this directly

Calls 2

GetSampleRecordMethod · 0.80
RecordIdMethod · 0.45

Tested by

no test coverage detected