wasmedge_sys::ffi

Function WasmEdge_ModuleInstanceListTag

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

List the exported tag names of a module instance.

The returned tag names filled into the Names array are linked to the exported names of tags 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 tag 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 tag names. \param Len the buffer length.

\returns actual exported tag list size.