pub fn get_custom_section_data<'a>(
wasm: &'a [u8],
section_name: &str,
) -> Result<Option<&'a [u8]>, BinaryReaderError>Expand description
Extract data of a custom section by name from raw WASM bytes.
Returns Ok(Some(data)) if the section is found, Ok(None) if the WASM
is valid but the section is not present, and Err if the WASM is malformed.
The error preserves the underlying parser diagnostic.