[−][src]Function wasmparser::validate_function_body
pub fn validate_function_body<F: WasmFuncType, T: WasmTableType, M: WasmMemoryType, G: WasmGlobalType>(
bytes: &[u8],
offset: usize,
func_index: u32,
resources: &dyn WasmModuleResources<FuncType = F, TableType = T, MemoryType = M, GlobalType = G>,
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.