Function wasmedge_sys::ffi::WasmEdge_MemoryInstanceCreate
source · pub unsafe extern "C" fn WasmEdge_MemoryInstanceCreate(
MemType: *const WasmEdge_MemoryTypeContext
) -> *mut WasmEdge_MemoryInstanceContext
Expand description
Creation of the WasmEdge_MemoryInstanceContext.
The caller owns the object and should call WasmEdge_MemoryInstanceDelete
to destroy it if the returned object is not added into a
WasmEdge_ModuleInstanceContext
.
\param MemType the memory type context to initialize the memory instance context.
\returns pointer to context, NULL if failed.