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

Method get

lib/vfs/fluxsectorinterface.cc:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27public:
28 std::shared_ptr<const Sector> get(
29 unsigned track, unsigned side, unsigned sectorId) override
30 {
31 auto it = _changedSectors.get(track, side, sectorId);
32 if (it)
33 return it;
34
35 CylinderHead trackid(track, side);
36 if (_loadedTracks.find(trackid) == _loadedTracks.end())
37 populateSectors(track, side);
38
39 return _loadedSectors.get(track, side, sectorId);
40 }
41
42 std::shared_ptr<Sector> put(
43 unsigned track, unsigned side, unsigned sectorId) override

Callers 3

flushChangesMethod · 0.45
getSectorMethod · 0.45
getLogicalSectorMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected