Next: enhanceimage, Previous: enablenewline, Up: Internal Routines [Contents][Index]
endian,x
Swap bytes in each element of numerical array or scalar x
according to its data type in order to switch between littleendian and
bigendian representation of numbers. In float
and long
numbers, bytes 0 and 3 are swapped, and bytes 1 and 2. In a
double
number, bytes 0 and 7 are swapped, and also bytes 1 and 6,
bytes 2 and 5, and bytes 3 and 4. In a word
number, bytes 0 and
1 are swapped. A byte
number is left unchanged.