Type Alias cranelift_wasm::wasmparser::ComponentTypeSectionReader

source ·
pub type ComponentTypeSectionReader<'a> = SectionLimited<'a, ComponentType<'a>>;
Expand description

A reader for the type section of a WebAssembly component.

§Examples

use wasmparser::ComponentTypeSectionReader;
let data: &[u8] = &[0x01, 0x40, 0x01, 0x03, b'f', b'o', b'o', 0x73, 0x00, 0x73];
let mut reader = ComponentTypeSectionReader::new(data, 0).unwrap();
for ty in reader {
    println!("Type {:?}", ty.expect("type"));
}

Aliased Type§

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