Function tvm::runtime::function::ffi::TVMCFuncSetReturn [−][src]
pub unsafe extern "C" fn TVMCFuncSetReturn(
ret: *mut c_void,
value: *mut TVMValue,
type_code: *mut i32,
num_ret: i32
) -> i32
Expand description
\brief Set the return value of TVMPackedCFunc.
This function is called by TVMPackedCFunc to set the return value. When this function is not called, the function returns null by default.
\param ret The return value handle, pass by ret in TVMPackedCFunc \param value The value to be returned. \param type_code The type of the value to be returned. \param num_ret Number of return values, for now only 1 is supported.