13 #include "coap_config.h" 26 unsigned int i, n = 0;
27 for (i = 0; i < len; ++i)
28 n = (n << 8) + buf[i];
37 for (n = 0, i = val; i && n <
sizeof(val); ++n)
int coap_fls(unsigned int i)
unsigned int coap_encode_var_bytes(unsigned char *buf, unsigned int val)
Encodes multiple-length byte sequences.
unsigned int coap_decode_var_bytes(unsigned char *buf, unsigned int len)
Decodes multiple-length byte sequences.