BUILT-IN MATHEMATICA SYMBOL
ByteOrdering
- Possible settings for ByteOrdering are
and
.
corresponds to big endian (appropriate for PowerPC and many other processors);
corresponds to little endian (appropriate for x86 processors).
corresponds to having the most-significant byte first;
to having the least-significant byte first.
is the order obtained from IntegerDigits[n, 256].
$ByteOrdering gives the byte ordering on this machine:
| Out[1]= |  |
Create a file with a 32-bit integer:
Read the data from the file:
| Out[4]= |  |
Read the data with reverse byte ordering:
| Out[6]= |  |
Recreate the correct interpretation using Mathematica functions:
| Out[7]= |  |
| Out[8]= |  |
New in 5.2