MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / load

Method load

src/Abyss/FileSystem/Direct.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28bool Direct::has(std::string_view path) { return _files.contains(normalizePath(path)); }
29
30InputStream Direct::load(std::string_view path) {
31 auto fb = std::make_unique<std::filebuf>();
32 fb->open(_basePath / _files.at(normalizePath(path)), std::ios_base::binary | std::ios_base::in);
33
34 return InputStream(std::move(fb));
35}
36
37} // namespace Abyss::FileSystem

Callers

nothing calls this directly

Calls 2

normalizePathFunction · 0.85
InputStreamClass · 0.85

Tested by

no test coverage detected