wasmi_c_api

Function wasm_module_copy

source
#[no_mangle]
pub extern "C" fn wasm_module_copy(
    src: &wasm_module_t,
) -> Box<wasm_module_t>
Expand description

Creates a new wasm_module_t which matches the provided one.

The caller is responsible for deleting the returned value via wasm_module_delete.