wasm_encoder::reencode::utils

Function parse_function_body

source
pub fn parse_function_body<T: ?Sized + Reencode>(
    reencoder: &mut T,
    code: &mut CodeSection,
    func: FunctionBody<'_>,
) -> Result<(), Error<T::Error>>
Available on crate feature wasmparser only.
Expand description

Parses a single wasmparser::FunctionBody and adds it to the code section.