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

Method unsafeImportDefinedType

include/runtime/instance/module.h:473–477  ·  view source on GitHub ↗

Unsafely import a defined type from a host function into this module.

Source from the content-addressed store, hash-verified

471
472 /// Unsafely import a defined type from a host function into this module.
473 void unsafeImportDefinedType(const AST::SubType &SType) {
474 Types.push_back(&SType);
475 const_cast<AST::SubType *>(Types.back())
476 ->setTypeIndex(static_cast<uint32_t>(Types.size()) - 1);
477 }
478
479 /// Unsafely create and add the instance to this module.
480 template <typename T, typename... Args>

Callers

nothing calls this directly

Calls 3

backMethod · 0.80
setTypeIndexMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected