Function mem_bswap32

Function Documentation

status_t mem_bswap32(uint32_t *buf, size_t n_bytes)

Byte swap memory in 2 byte chunks (upper 16/lower 16) in place.

Parameters:
  • buf – Memory to swap. Must be 32-bit aligned or no action is performed.

  • n_bytes – # bytes to swap. Must be 32-bit aligned or no action is performed.

Returns:

status_t