wamr_sys

Function wasm_runtime_get_custom_section

Source
pub unsafe extern "C" fn wasm_runtime_get_custom_section(
    module_comm: wasm_module_t,
    name: *const c_char,
    len: *mut u32,
) -> *const u8
Expand description

Get a custom section by name

@param module_comm the module to find @param name name of the custom section @param len return the length of the content if found

@return Custom section content (not including the name length and name string) if found, NULL otherwise