Use endianness functions from swap-bytes