| 598 | } |
| 599 | |
| 600 | void writeDiskCommand(const DiskLayout& diskLayout, |
| 601 | const Image& image, |
| 602 | Encoder& encoder, |
| 603 | FluxSinkFactory& fluxSinkFactory, |
| 604 | Decoder* decoder, |
| 605 | FluxSource* fluxSource, |
| 606 | const std::vector<CylinderHead>& physicalLocations) |
| 607 | { |
| 608 | auto sectorLocations = |
| 609 | std::ranges::views::keys(diskLayout.layoutByLogicalLocation); |
| 610 | auto chs = std::vector(sectorLocations.begin(), sectorLocations.end()); |
| 611 | if (fluxSource && decoder) |
| 612 | writeTracksAndVerify(diskLayout, |
| 613 | fluxSinkFactory, |
| 614 | encoder, |
| 615 | *fluxSource, |
| 616 | *decoder, |
| 617 | image, |
| 618 | chs); |
| 619 | else |
| 620 | writeTracks(diskLayout, fluxSinkFactory, encoder, image, chs); |
| 621 | } |
| 622 | |
| 623 | void writeDiskCommand(const DiskLayout& diskLayout, |
| 624 | const Image& image, |
no test coverage detected