Skip to main content

WasmEdge_LimitCreateWithMax

Function WasmEdge_LimitCreateWithMax 

Source
pub unsafe extern "C" fn WasmEdge_LimitCreateWithMax(
    Min: u64,
    Max: u64,
    Is64Bit: bool,
    IsShared: bool,
) -> *mut WasmEdge_LimitContext
Expand description

Creation of the WasmEdge_LimitContext with max value.

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

\param Min the minimum of this limit. \param Max the maximum of this limit. \param Is64Bit determine the 64-bit address type of this limit. false for the 32-bit address type. \param IsShared determine the shareability of this limit when used in memory type. For table type usage, this configuration should be false.

\returns pointer to context, NULL if failed.