riot_sys::bindgen

Function coap_opt_put_uint

Source
pub unsafe extern "C" fn coap_opt_put_uint(
    buf: *mut u8,
    lastonum: u16,
    onum: u16,
    value: u32,
) -> size_t
Expand description

@brief Encode the given uint option into buffer

@param[out] buf buffer to write to @param[in] lastonum number of previous option (for delta calculation), or 0 for first option @param[in] onum number of option @param[in] value value to encode

@returns amount of bytes written to @p buf