How do I convert between big-endian and little-endian values in C++?
EDIT: For clarity, I have to translate binary data (double-precision floating point values and 3
If you're doing this to transfer data between different platforms look at the ntoh and hton functions.