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

Method newStruct

include/runtime/instance/module.h:280–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 return OwnedArrayInsts.back().get();
279 }
280 template <typename... Args> StructInstance *newStruct(Args &&...Values) {
281 std::unique_lock Lock(Mutex);
282 OwnedStructInsts.push_back(
283 std::make_unique<StructInstance>(this, std::forward<Args>(Values)...));
284 return OwnedStructInsts.back().get();
285 }
286 template <typename... Args>
287 ExceptionInstance *newException(Args &&...Values) {
288 std::unique_lock Lock(Mutex);

Callers 1

structNewMethod · 0.80

Calls 2

backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected