13 #include "coap_config.h" 37 unsigned int i, n = 0;
38 for (i = 0; i < len; ++i)
39 n = (n << 8) + buf[i];
48 for (n = 0, i = val; i && n <
sizeof(val); ++n)
int coap_flsll(long long i)
unsigned int coap_encode_var_safe(uint8_t *buf, size_t length, unsigned int val)
Encodes multiple-length byte sequences.
int coap_fls(unsigned int i)
unsigned int coap_decode_var_bytes(const uint8_t *buf, unsigned int len)
Decodes multiple-length byte sequences.