MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / try_open_mmap_memory_source

Function try_open_mmap_memory_source

src/io/mmap_memory_source.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98} // anonymous
99
100std::unique_ptr<MemorySource> try_open_mmap_memory_source(const std::filesystem::path& p) {
101 try {
102 return std::make_unique<MmapMemorySource>(p);
103 } catch (const std::exception& e) {
104 log::warn("mmap source failed ({}); falling back to file source", e.what());
105 return nullptr;
106 }
107}
108
109#else // _WIN32
110

Callers 1

open_best_memory_sourceFunction · 0.85

Calls 1

warnFunction · 0.85

Tested by

no test coverage detected