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

Method newArray

include/runtime/instance/module.h:274–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 unsafeAddInstance(OwnedDataInsts, DataInsts, std::forward<Args>(Values)...);
273 }
274 template <typename... Args> ArrayInstance *newArray(Args &&...Values) {
275 std::unique_lock Lock(Mutex);
276 OwnedArrayInsts.push_back(
277 std::make_unique<ArrayInstance>(this, std::forward<Args>(Values)...));
278 return OwnedArrayInsts.back().get();
279 }
280 template <typename... Args> StructInstance *newStruct(Args &&...Values) {
281 std::unique_lock Lock(Mutex);
282 OwnedStructInsts.push_back(

Callers 3

arrayNewMethod · 0.80
arrayNewDataMethod · 0.80
arrayNewElemMethod · 0.80

Calls 2

backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected