MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / ~MmapMemorySource

Method ~MmapMemorySource

src/io/mmap_memory_source.cpp:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 ~MmapMemorySource() override {
71 if (view_) UnmapViewOfFile(view_);
72 if (mapping_) CloseHandle(mapping_);
73 if (file_ != INVALID_HANDLE_VALUE) CloseHandle(file_);
74 }
75
76 u64 size() const override { return size_; }
77 const std::string& name() const override { return name_; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected