[][src]Function libcoap_sys::coap_opt_delta

pub unsafe extern "C" fn coap_opt_delta(opt: *const coap_opt_t) -> u16

Decodes the delta value of the next option. This function returns the number of bytes read or @c 0 on error. The caller of this function must ensure that it does not read over the boundaries of @p opt (e.g. by calling coap_opt_check_delta().

@param opt The option to examine.

@return The number of bytes read or @c 0 on error.