Byte array utils
Get uint16_t
, uint32_t
values from the byte array as uint8_t,
big-endian sequence.
p
is incremented by the number of bytes read.
Write uint8_t
, big-endian uint16_t
and uint32_t
values to the byte array specified by pointer q
.
q
is incremented by the number of bytes written.
To simplify operations when generating and disassembling the data payload of wireless packets.
More simplified pack_bytes()
and expand_bytes()
are also available.