Skip to main content

WasmEdge_ModuleInstanceCreate

Function WasmEdge_ModuleInstanceCreate 

Source
pub unsafe extern "C" fn WasmEdge_ModuleInstanceCreate(
    ModuleName: WasmEdge_String,
) -> *mut WasmEdge_ModuleInstanceContext
Expand description

Creation of the WasmEdge_ModuleInstanceContext.

Create a module instance context with exported module name for host instances. Developers can use this API to create a module instance for collecting host functions, tables, memories, tags, and globals. The caller owns the object and should call WasmEdge_ModuleInstanceDelete to destroy it.

\param ModuleName the module name WasmEdge_String of this host module to import.

\returns pointer to context, NULL if failed.