wasmedge_sys::ffi

Function WasmEdge_ModuleInstanceListGlobal

Source
pub unsafe extern "C" fn WasmEdge_ModuleInstanceListGlobal(
    Cxt: *const WasmEdge_ModuleInstanceContext,
    Names: *mut WasmEdge_String,
    Len: u32,
) -> u32
Expand description

List the exported global names of a module instance.

The returned global names filled into the Names array are linked to the exported names of globals of the module instance context, and the caller should NOT call the WasmEdge_StringDelete. If the Names buffer length is smaller than the result of the exported global list size, the overflowed return values will be discarded.

This function is thread-safe.

\param Cxt the WasmEdge_ModuleInstanceContext. \param [out] Names the output WasmEdge_String buffer of the global names. \param Len the buffer length.

\returns actual exported global list size.