2 This is an example code how to use C++ for automatic endian conversion.
3 The basic idea is this:
5 - We create types which mimick big endian (BE) data types.
7 - We use this base types to access data thus gaining automatic
10 The big plus is here that the C++ compiler can optimize
12 - assignments between similar types (eg. BE to BE)
14 - Omit all special code if the CPU is BE
16 Have a look at types.h for a deeper intoduction.