Function sc_executor_wasmi::create_runtime
source · pub fn create_runtime(
blob: RuntimeBlob,
heap_alloc_strategy: HeapAllocStrategy,
host_functions: Vec<&'static dyn Function>,
allow_missing_func_imports: bool
) -> Result<WasmiRuntime, WasmError>
Expand description
Create a new WasmiRuntime
given the code. This function loads the module and
stores it in the instance.