| 459 | bool SampleQueue::IsEmpty() const { return queue_.empty(); } |
| 460 | |
| 461 | void SampleQueue::SetLastPosition(std::streambuf& buffer) { |
| 462 | buffer.pubseekoff(0, std::ios_base::end); |
| 463 | |
| 464 | auto *dg3 = dynamic_cast<Dg3Block *>(&data_group_); |
| 465 | if (dg3 == nullptr) { |
| 466 | return; |
| 467 | } |
| 468 | |
| 469 | if (dg3->Link(3) > 0) { |
| 470 | return; |
| 471 | } |
| 472 | |
| 473 | dg3->SetLastFilePosition(buffer); |
| 474 | const auto position = detail::GetFilePosition(buffer); |
| 475 | dg3->UpdateLink(buffer, 3, position); |
| 476 | dg3->SetLastFilePosition(buffer); |
| 477 | } |
| 478 | |
| 479 | void SampleQueue::SetDataPosition(std::streambuf& buffer) { |
| 480 | if (writer_.CompressData()) { |
nothing calls this directly
no test coverage detected