| 97 | |
| 98 | public: |
| 99 | std::unique_ptr<const Fluxmap> readSingleFlux(int track, int side) override |
| 100 | { |
| 101 | const auto& p = |
| 102 | _trackOffsets.find(CylinderHead{(unsigned)track, (unsigned)side}); |
| 103 | if (p == _trackOffsets.end()) |
| 104 | return std::make_unique<const Fluxmap>(); |
| 105 | |
| 106 | off_t pos = p->second.first; |
| 107 | size_t length = p->second.second; |
| 108 | _if.seekg(pos); |
| 109 | Bytes fluxdata(_if, length); |
| 110 | check_for_error(); |
| 111 | |
| 112 | return decodeCatweaselData(fluxdata, _clockPeriod); |
| 113 | } |
| 114 | |
| 115 | void recalibrate() override {} |
| 116 |
nothing calls this directly
no test coverage detected