Type Alias wasmtime_environ::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, BinaryReader};
let data: &[u8] = &[0x01, 0x40, 0x01, 0x03, b'f', b'o', b'o', 0x73, 0x00, 0x73];
let reader = BinaryReader::new(data, 0);
let mut reader = ComponentTypeSectionReader::new(reader).unwrap();
for ty in reader {
println!("Type {:?}", ty.expect("type"));
}
Aliased Type§
struct ComponentTypeSectionReader<'a> { /* private fields */ }