Function wasmedge_sys::ffi::WasmEdge_ModuleInstanceAddTable
source · pub unsafe extern "C" fn WasmEdge_ModuleInstanceAddTable(
Cxt: *mut WasmEdge_ModuleInstanceContext,
Name: WasmEdge_String,
TableCxt: *mut WasmEdge_TableInstanceContext
)
Expand description
Add a table instance context into a WasmEdge_ModuleInstanceContext.
Export and move the ownership of the table instance into the module instance. The caller should NOT access or destroy the table instance context after calling this function.
This function is thread-safe.
\param Cxt the WasmEdge_ModuleInstanceContext to add the table instance. \param Name the export table name WasmEdge_String. \param TableCxt the WasmEdge_TableInstanceContext to add.