(
store: &mut wasm_store_t,
binary: &wasm_byte_vec_t,
)
| 44 | #[unsafe(no_mangle)] |
| 45 | #[cfg(any(feature = "cranelift", feature = "winch"))] |
| 46 | pub unsafe extern "C" fn wasm_module_validate( |
| 47 | store: &mut wasm_store_t, |
| 48 | binary: &wasm_byte_vec_t, |
| 49 | ) -> bool { |
| 50 | Module::validate(store.store.context().engine(), binary.as_slice()).is_ok() |
| 51 | } |
| 52 | |
| 53 | fn fill_exports(module: &Module, out: &mut wasm_exporttype_vec_t) { |
| 54 | let exports = module |