wasmedge_sys::ffi

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 value types list of parameters. NULL if the length is 0. \param ParamLen the ParamList buffer length. \param ReturnList the value types list of returns. NULL if the length is 0. \param ReturnLen the ReturnList buffer length.

\returns pointer to context, NULL if failed.