wasmedge_sys::ffi

Function WasmEdge_MemoryTypeCreate

Source
pub unsafe extern "C" fn WasmEdge_MemoryTypeCreate(
    Limit: WasmEdge_Limit,
) -> *mut WasmEdge_MemoryTypeContext
Expand description

Creation of the WasmEdge_MemoryTypeContext.

The caller owns the object and should call WasmEdge_MemoryTypeDelete to destroy it.

\param Limit the limit struct of the memory type.

\returns pointer to context, NULL if failed.