Function wasmer_c_api::wasm_c_api::unstable::module::wasmer_module_new

source ·
#[no_mangle]
pub unsafe extern "C" fn wasmer_module_new(
    engine: Option<&mut wasm_engine_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 using the provided engine, respecting its configuration.

§Security

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

§Example

See the module’s documentation.