29 unsigned long long i = (
unsigned long long)j;
39 unsigned int i, n = 0;
40 for (i = 0; i < len; ++i)
41 n = (n << 8) + buf[i];
50 for (n = 0, i = val; i && n <
sizeof(val); ++n)
70 for (i = 0; i < len && i <
sizeof(uint64_t); ++i)
71 n = (n << 8) + buf[i];
81 for (n = 0; tval && n <
sizeof(val); ++n)
int coap_flsll(long long j)
int coap_fls(unsigned int i)
Pulls together all the internal only header files.
unsigned int coap_encode_var_safe(uint8_t *buf, size_t length, unsigned int val)
Encodes multiple-length byte sequences.
unsigned int coap_decode_var_bytes(const uint8_t *buf, size_t len)
Decodes multiple-length byte sequences.
uint64_t coap_decode_var_bytes8(const uint8_t *buf, size_t 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.