Function wasmedge_sys::ffi::WasmEdge_ModuleInstanceFindMemory
source · pub unsafe extern "C" fn WasmEdge_ModuleInstanceFindMemory(
Cxt: *const WasmEdge_ModuleInstanceContext,
Name: WasmEdge_String
) -> *mut WasmEdge_MemoryInstanceContext
Expand description
Get the exported memory instance context of a module instance.
The result memory instance context links to the memory instance in the
module instance context and owned by the module instance context, and the
caller should NOT call the WasmEdge_MemoryInstanceDelete
.
This function is thread-safe.
\param Cxt the WasmEdge_ModuleInstanceContext. \param Name the memory name WasmEdge_String.
\returns pointer to the memory instance context. NULL if not found.