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

Method unsafeAddInstance

include/runtime/instance/module.h:481–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479 /// Unsafely create and add the instance to this module.
480 template <typename T, typename... Args>
481 std::enable_if_t<IsInstanceV<T>, void>
482 unsafeAddInstance(std::vector<std::unique_ptr<T>> &OwnedInstsVec,
483 std::vector<T *> &InstsVec, Args &&...Values) {
484 OwnedInstsVec.push_back(std::make_unique<T>(std::forward<Args>(Values)...));
485 InstsVec.push_back(OwnedInstsVec.back().get());
486 }
487
488 /// Unsafely add and export the existing instance to this module.
489 template <typename T, typename... Args>

Callers

nothing calls this directly

Calls 2

backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected