#[no_mangle]
pub unsafe extern "C" fn wasm_module_deserialize(
_store: &mut wasm_store_t,
_binary: &wasm_byte_vec_t,
) -> Option<Box<wasm_module_t>>
Expand description
Deserializes the binary as a wasm_module_t
.
The input binary must be resulting from a call to wasm_module_serialize
.
Returns None
if deserialization failed.
§Note
This API is unsupported and will panic upon use.
§Safety
It is the caller’s responsibility not to alias the wasm_module_t
with its underlying, internal WasmStoreRef
.