MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / MMap

Method MMap

lib/system/mmap.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133} // namespace
134
135MMap::MMap(const std::filesystem::path &Path) noexcept : Handle(nullptr) {
136 auto NativeHandle = std::make_unique<Implement>(Path);
137 if (!NativeHandle->ok()) {
138 return;
139 }
140
141 Handle = NativeHandle.release();
142}
143
144MMap::~MMap() noexcept {
145 if (!Handle) {

Callers

nothing calls this directly

Calls 2

okMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected