wasmparser

Type Alias InstanceSectionReader

Source
pub type InstanceSectionReader<'a> = SectionLimited<'a, Instance<'a>>;
Available on crate feature component-model only.
Expand description

A reader for the core instance section of a WebAssembly component.

§Examples

use wasmparser::{InstanceSectionReader, BinaryReader};
let reader = BinaryReader::new(data, 0);
let mut reader = InstanceSectionReader::new(reader).unwrap();
for inst in reader {
    println!("Instance {:?}", inst.expect("instance"));
}

Aliased Type§

struct InstanceSectionReader<'a> { /* private fields */ }