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)
68 for (i = 0; i < len; ++i)
69 n = (
n << 8) + buf[i];
79 for (
n = 0; tval &&
n <
sizeof(val); ++
n)
Pulls together all the internal only header files.
int coap_flsll(long long i)
int coap_fls(unsigned int i)
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.