buf_bswap16() function
Byte-swap buffer 16-bit. Len must be even, dst and src must be either the same or non-overlapping.
Syntax
static inline void buf_bswap16(uint8_t *dst,
const uint8_t *src,
size_t len);
Arguments
len
Length of source (and destination) buffer, in bytes.