Skip to main content

WasmEdge_FunctionTypeCreate

Function WasmEdge_FunctionTypeCreate 

Source
pub unsafe extern "C" fn WasmEdge_FunctionTypeCreate(
    ParamList: *const WasmEdge_ValType,
    ParamLen: u32,
    ReturnList: *const WasmEdge_ValType,
    ReturnLen: u32,
) -> *mut WasmEdge_FunctionTypeContext
Expand description

Creation of the WasmEdge_FunctionTypeContext.

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

\param ParamList the list of parameter value types. NULL if the length is 0. \param ParamLen the ParamList buffer length. \param ReturnList the list of return value types. NULL if the length is 0. \param ReturnLen the ReturnList buffer length.

\returns pointer to context, NULL if failed.