32 unsigned int i,
n = 0;
33 for (i = 0; i < len; ++i)
34 n = (
n << 8) + buf[i];
43 for (
n = 0, i = val; i &&
n <
sizeof(val); ++
n)
63 for (i = 0; i < len; ++i)
64 n = (
n << 8) + buf[i];
74 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.