Function wasmedge_sys::ffi::WasmEdge_ModuleInstanceListFunction
source · pub unsafe extern "C" fn WasmEdge_ModuleInstanceListFunction(
Cxt: *const WasmEdge_ModuleInstanceContext,
Names: *mut WasmEdge_String,
Len: u32
) -> u32
Expand description
List the exported function names of a module instance.
The returned function names filled into the Names
array are linked to the
exported names of functions 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
function 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 function names. \param Len the buffer length.
\returns actual exported function list size.