MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasm_module_validate

Function wasm_module_validate

crates/c-api/src/module.rs:46–51  ·  view source on GitHub ↗
(
    store: &mut wasm_store_t,
    binary: &wasm_byte_vec_t,
)

Source from the content-addressed store, hash-verified

44#[unsafe(no_mangle)]
45#[cfg(any(feature = "cranelift", feature = "winch"))]
46pub 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
53fn fill_exports(module: &Module, out: &mut wasm_exporttype_vec_t) {
54 let exports = module

Callers

nothing calls this directly

Calls 5

is_okMethod · 0.80
validateFunction · 0.50
engineMethod · 0.45
contextMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected