MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / ~Ptr

Method ~Ptr

test/api/APIAOTNestedVMTest.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 Ptr(const Ptr &) = delete;
83 Ptr(Ptr &&Other) { std::swap(Ffi, Other.Ffi); }
84 ~Ptr() {
85 if (Ffi != nullptr) {
86 deletePtr(Ffi);
87 }
88 }
89 operator Pffi() const { return Ffi; }
90 operator Pffi *() { return &Ffi; }
91};

Callers

nothing calls this directly

Calls 1

deletePtrFunction · 0.85

Tested by

no test coverage detected