MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / dumpSectorMetadata

Function dumpSectorMetadata

src/gui/fluxviewercontrol.cc:604–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604static 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
620static void dumpRecordMetadata(
621 std::ostream& s, std::shared_ptr<const Record> record)

Callers 3

DisplayDecodedDataMethod · 0.85
DisplaySectorSummaryMethod · 0.85
DisplayRawDataMethod · 0.85

Calls 1

crc16Function · 0.50

Tested by

no test coverage detected