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

Method next

lib/fluxsource/dmkfluxsource.cc:28–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 std::unique_ptr<const Fluxmap> next() override
29 {
30 std::string path = getPath();
31 log("DMK: reading {}", path);
32 std::ifstream ifstream(getPath(), std::ios::binary);
33 if (!ifstream)
34 return std::make_unique<Fluxmap>();
35 _count++;
36
37 Bytes bytes(ifstream);
38 return decodeCatweaselData(bytes, 1e9 / 7080500.0);
39 }
40
41private:
42 const std::string getPath() const

Callers

nothing calls this directly

Calls 2

decodeCatweaselDataFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected