wamr_sys

Type Alias module_reader

Source
pub type module_reader = Option<unsafe extern "C" fn(module_type: package_type_t, module_name: *const c_char, p_buffer: *mut *mut u8, p_size: *mut u32) -> bool>;
Expand description

Callback to load a module file into a buffer in multi-module feature

Aliased Type§

enum module_reader {
    None,
    Some(unsafe extern "C" fn(_: u32, _: *const i8, _: *mut *mut u8, _: *mut u32) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: u32, _: *const i8, _: *mut *mut u8, _: *mut u32) -> bool)

Some value of type T.