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

Function wasmtime_module_validate

crates/c-api/src/module.rs:175–182  ·  view source on GitHub ↗
(
    engine: &wasm_engine_t,
    wasm: *const u8,
    len: usize,
)

Source from the content-addressed store, hash-verified

173#[unsafe(no_mangle)]
174#[cfg(any(feature = "cranelift", feature = "winch"))]
175pub unsafe extern "C" fn wasmtime_module_validate(
176 engine: &wasm_engine_t,
177 wasm: *const u8,
178 len: usize,
179) -> Option<Box<wasmtime_error_t>> {
180 let binary = crate::slice_from_raw_parts(wasm, len);
181 handle_result(Module::validate(&engine.engine, binary), |()| {})
182}
183
184#[unsafe(no_mangle)]
185#[cfg(any(feature = "cranelift", feature = "winch"))]

Callers 1

validateMethod · 0.85

Calls 3

slice_from_raw_partsFunction · 0.85
handle_resultFunction · 0.85
validateFunction · 0.50

Tested by

no test coverage detected