(
store: &mut wasm_store_t,
binary: &wasm_byte_vec_t,
)
| 117 | |
| 118 | #[unsafe(no_mangle)] |
| 119 | pub unsafe extern "C" fn wasm_module_deserialize( |
| 120 | store: &mut wasm_store_t, |
| 121 | binary: &wasm_byte_vec_t, |
| 122 | ) -> Option<Box<wasm_module_t>> { |
| 123 | match Module::deserialize(store.store.context().engine(), binary.as_slice()) { |
| 124 | Ok(module) => Some(Box::new(wasm_module_t::new(module))), |
| 125 | Err(_) => None, |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | #[derive(Clone)] |
| 130 | pub struct wasmtime_module_t { |
nothing calls this directly
no test coverage detected