wasm_encoder::reencode::utils

Function parse_data

source
pub fn parse_data<T: ?Sized + Reencode>(
    reencoder: &mut T,
    data: &mut DataSection,
    datum: Data<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses a single wasmparser::Data and adds it to the data section.