Wirepas SDK
|
Bytes to native integers packing and unpacking
Definition in file pack.h.
Go to the source code of this file.
Functions | |
uint32_t | Pack_unpackLe (const uint8_t *bytes, size_t num_bytes) |
Convert 1 to 4 little endian bytes to a native unsigned integer. More... | |
void | Pack_packLe (void *bytes, uint32_t value, size_t num_bytes) |
Convert native unsigned integer to 1 to 4 little endian bytes. More... | |
void Pack_packLe | ( | void * | bytes, |
uint32_t | value, | ||
size_t | num_bytes | ||
) |
Convert native unsigned integer to 1 to 4 little endian bytes.
bytes | Pointer to bytes to pack |
value | Value to pack |
num_bytes | Number of bytes to pack, up to 4 |
uint32_t Pack_unpackLe | ( | const uint8_t * | bytes, |
size_t | num_bytes | ||
) |
Convert 1 to 4 little endian bytes to a native unsigned integer.
bytes | Pointer to bytes to unpack |
num_bytes | Number of bytes to unpack, up to 4 |