#[no_mangle]
pub extern "C" fn wasm_module_share(
module: &wasm_module_t,
) -> Box<wasm_shared_module_t>
Expand description
Shares the module
and returns a shared image as wasm_shared_module_t
.
- This has similar effects to shallow-cloning a
wasm_module_t
. - Obtain the original
wasm_module_t
via a call towasm_module_obtain
.
Wraps Module::clone
(kinda).