Function Reference
— Function File: swapbytes (x)

Swaps the byte order on values, converting from little endian to big endian and visa-versa. For example

          swapbytes (uint16 (1:4))
           [   256   512   768  1024]

See also: typecast cast