wasm_bench_create

Function wasm_bench_create 

Source
#[unsafe(no_mangle)]
pub extern "C" fn wasm_bench_create( config: WasmBenchConfig, out_bench_ptr: *mut *mut c_void, ) -> ExitCode
Expand description

Exposes a C-compatible way of creating the engine from the bytes of a single Wasm module.

On success, the out_bench_ptr is initialized to a pointer to a structure that contains the engine’s initialized state, and 0 is returned. On failure, a non-zero status code is returned and out_bench_ptr is left untouched.