/// Parses the raw bytes of a section with the given identifier.
/// Validates the section identified and length.
///
/// See <https://webassembly.github.io/spec/core/binary/modules.html#sections>
Parses the raw bytes of a section with the given identifier.
Validates the section identified and length.

See
Parses the raw bytes of a section with the given identifier . Validates the section identified and length . See
fn parse_section_raw(section: ModuleSection) -> impl Fn(&[u8]) -> IResult<&[u8], &[u8]> {
    move |input| {
        let (input, _) = match_byte(section as u8)(input)?;
        let (input, length) = parse_u32(input)?;
        take(length)(input)
    }
}
fn parse_section_raw ( section : ModuleSection ) -> impl Fn ( & [ u8 ] ) -> IResult < & [ u8 ] , & [ u8 ] > { move | input | { let ( input , _ ) = match_byte ( section as u8 ) ( input ) ? ; let ( input , length ) = parse_u32 ( input ) ? ; take ( length ) ( input ) } }
Parses the raw bytes of a section with the given identifier.
Parses the raw bytes of a section with the given identifier .
section
ModuleSection