| 331 | } |
| 332 | |
| 333 | void 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 |
nothing calls this directly
no test coverage detected