30 unsigned int i, n = 0;
31 for (i = 0; i < len; ++i)
32 n = (n << 8) + buf[i];
41 for (n = 0, i = val; i && n <
sizeof(val); ++n)
61 for (i = 0; i < len; ++i)
62 n = (n << 8) + buf[i];
72 for (n = 0; tval && 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.
uint64_t coap_decode_var_bytes8(const uint8_t *buf, unsigned int len)
Decodes multiple-length byte sequences.
unsigned int coap_encode_var_safe8(uint8_t *buf, size_t length, uint64_t val)
Encodes multiple-length byte sequences.
Pulls together all the internal only header files.