Skip to main content

WasmEdge_ModuleInstanceGetHostData

Function WasmEdge_ModuleInstanceGetHostData 

Source
pub unsafe extern "C" fn WasmEdge_ModuleInstanceGetHostData(
    Cxt: *const WasmEdge_ModuleInstanceContext,
) -> *mut c_void
Expand description

Get the host data set for the module instance during creation.

The returned data is owned by the module instance, and will be passed to the finalizer during deletion of this module instance.

\param Cxt the WasmEdge_ModuleInstanceContext.

\returns host data. NULL if the module instance context is NULL or no host data is set for the module instance.