C++ endian helper definitions.