Function wasmer_c_api::wasm_c_api::module::wasm_module_new

source ·
#[no_mangle]
pub unsafe extern "C" fn wasm_module_new(
    store: Option<&mut wasm_store_t>,
    bytes: Option<&wasm_byte_vec_t>,
) -> Option<Box<wasm_module_t>>
Expand description

A WebAssembly module contains stateless WebAssembly code that has already been compiled and can be instantiated multiple times.

Creates a new WebAssembly Module given the configuration in the store.

§Security

Before the code is compiled, it will be validated using the store features.

§Example

See the module’s documentation.