wasmer_module_new

Function wasmer_module_new 

Source
#[unsafe(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.