wasm_encoder::reencode::utils

Function parse_custom_section

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

Parses the input section given from the wasmparser crate and adds the custom section to the module.