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

Method readSingleFlux

lib/fluxsource/cwffluxsource.cc:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98public:
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

Callers

nothing calls this directly

Calls 4

check_for_errorFunction · 0.85
decodeCatweaselDataFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected