Mathematica > Systems Interfaces & Deployment > Mathematica System Setup > System Information > $ByteOrdering >

$ByteOrdering

$ByteOrdering
gives the native ordering of bytes in binary data on your computer system.
  • corresponds to big endian (appropriate for 680x0 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.
Byte ordering on this machine:
Read in a byte stream with reversed byte ordering:
Correct the byte ordering:
Byte ordering on this machine:
In[1]:=
Click for copyable input
Out[1]=
 
Read in a byte stream with reversed byte ordering:
In[1]:=
Click for copyable input
Out[1]=
Correct the byte ordering:
In[2]:=
Click for copyable input
Out[2]=
New in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF