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

Method SetLastPosition

lib/mdflib/mdflib/src/writer4samplequeue.cpp:333–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void Writer4SampleQueue::SetLastPosition(std::streambuf& buffer) {
334 buffer.pubseekoff(0, std::ios_base::end);
335
336 auto* dg4 = dynamic_cast<Dg4Block*>(&data_group_);
337 if (dg4 == nullptr) {
338 return;
339 }
340
341 if (dg4->Link(2) > 0) {
342 return;
343 }
344
345 dg4->SetLastFilePosition(buffer);
346 auto position = GetFilePosition(buffer);
347 dg4->UpdateLink(buffer, 2, position);
348 dg4->SetLastFilePosition(buffer);
349}
350
351} // namespace mdf::detail

Callers

nothing calls this directly

Calls 4

GetFilePositionFunction · 0.85
SetLastFilePositionMethod · 0.80
UpdateLinkMethod · 0.80
LinkMethod · 0.45

Tested by

no test coverage detected