[][src]Function wasmparser::validate_function_body

pub fn validate_function_body(
    bytes: &[u8],
    offset: usize,
    func_index: u32,
    resources: &dyn 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.