Function wasm::validation::code::validate_code_section
source · pub fn validate_code_section(
wasm: &mut WasmReader<'_>,
section_header: SectionHeader,
fn_types: &[FuncType],
type_idx_of_fn: &[usize],
num_imported_funcs: usize,
globals: &[Global],
memories: &[MemType],
data_count: &Option<u32>,
tables: &[TableType],
elements: &[ElemType],
referenced_functions: &BTreeSet<u32>
) -> Result<Vec<(Span, Vec<SidetableEntry>)>>