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

Function writeRawDiskCommand

lib/algorithms/readerwriter.cc:641–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641void writeRawDiskCommand(const DiskLayout& diskLayout,
642 FluxSource& fluxSource,
643 FluxSinkFactory& fluxSinkFactory)
644{
645 writeTracks(
646 diskLayout,
647 fluxSinkFactory,
648 [&](const std::shared_ptr<const LogicalTrackLayout>& ltl)
649 {
650 return fluxSource
651 .readFlux(ltl->physicalCylinder, ltl->physicalHead)
652 ->next();
653 },
654 [](const auto&)
655 {
656 return true;
657 },
658 diskLayout.logicalLocations);
659}
660
661void readAndDecodeTrack(const DiskLayout& diskLayout,
662 FluxSource& fluxSource,

Callers 3

mainRawWriteFunction · 0.85
writeFluxFileMethod · 0.85
OnSaveFluxButtonMethod · 0.85

Calls 3

writeTracksFunction · 0.85
nextMethod · 0.45
readFluxMethod · 0.45

Tested by

no test coverage detected