Function libmcl_sys::mcl_task_set_arg
source · pub unsafe extern "C" fn mcl_task_set_arg(
hdl: *mut mcl_handle,
argid: u64,
addr: *mut c_void,
size: size_t,
flags: u64
) -> c_intExpand description
@brief Set up an argument associated with a task @ingroup Args
@param hdl The task handle create by mcl_task_create @param argid The index of the argument @param addr A pointer to the data @param size The size of the argument @param flags Any of the MCL_ARG_* flags. Must include one of MCL_ARG_BUFFER or MCL_ARG_SCALAR @return int 0 on success