| 602 | } |
| 603 | |
| 604 | static void dumpSectorMetadata( |
| 605 | std::ostream& s, std::shared_ptr<const Sector> sector) |
| 606 | { |
| 607 | s << fmt::format( |
| 608 | "Sector status: {}\n", Sector::statusToString(sector->status)) |
| 609 | << fmt::format("Physical location: c{}.h{}\n", |
| 610 | sector->physicalCylinder, |
| 611 | sector->physicalHead) |
| 612 | << fmt::format("Clock: {:.2f}us / {:.0f}kHz\n", |
| 613 | sector->clock / 1000.0, |
| 614 | 1000000.0 / sector->clock) |
| 615 | << fmt::format("Bytecode position: {}\n", sector->position) |
| 616 | << fmt::format( |
| 617 | "Data CRC16: {:4x}\n", crc16(CCITT_POLY, sector->data)); |
| 618 | } |
| 619 | |
| 620 | static void dumpRecordMetadata( |
| 621 | std::ostream& s, std::shared_ptr<const Record> record) |
no test coverage detected