In reply to ed34:
> (In reply to Anonymous)
>
> so the space splits the number into bytes?
Yes - but the space does not mean anything. Hex is a convienient notation for binary.
For example, 0xf is the same as 4 bits, the binary of which is 1111
If you had the binary number (and I use spaces to make it easier to read
1111 1111 1111 1111, the hex equivilent is 0xffff and so on.
Since a byte is 8 bits long, it can represent numbers from 0x00 to 0xff or binary 0 to 11111111.
Byte swapping is done as shown by other posters.