pub type ComponentImportSectionReader<'a> = SectionLimited<'a, ComponentImport<'a>>;
Expand description

A reader for the import section of a WebAssembly component.

Examples

use wasmparser::ComponentImportSectionReader;
let data: &[u8] = &[0x01, 0x01, 0x41, 0x00, 0x01, 0x66];
let reader = ComponentImportSectionReader::new(data, 0).unwrap();
for import in reader {
    let import = import.expect("import");
    println!("Import: {:?}", import);
}