Function wasmedge_sys::ffi::WasmEdge_ExecutorCreate
source · pub unsafe extern "C" fn WasmEdge_ExecutorCreate(
ConfCxt: *const WasmEdge_ConfigureContext,
StatCxt: *mut WasmEdge_StatisticsContext
) -> *mut WasmEdge_ExecutorContext
Expand description
Creation of the WasmEdge_ExecutorContext.
The caller owns the object and should call WasmEdge_ExecutorDelete
to
delete it.
\param ConfCxt the WasmEdge_ConfigureContext as the configuration of Executor. NULL for the default configuration. \param StatCxt the WasmEdge_StatisticsContext as the statistics object set into Executor. The statistics will refer to this context, and the life cycle should be guaranteed until the executor context is deleted. NULL for not doing the statistics.
\returns pointer to context, NULL if failed.