Function wasmparser::validate_function_body [−][src]
pub fn validate_function_body(
bytes: &[u8],
offset: usize,
func_index: u32,
resources: impl WasmModuleResources,
operator_config: Option<OperatorValidatorConfig>
) -> Result<()>
Test whether the given buffer contains a valid WebAssembly function. The resources parameter contains all needed data to validate the operators.