wasm_encoder::reencode::utils

Function parse_import_section

source
pub fn parse_import_section<T: ?Sized + Reencode>(
    reencoder: &mut T,
    imports: &mut ImportSection,
    section: ImportSectionReader<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses the input section given from the wasmparser crate and adds all the imports to the import section.