Definition at line 27 of file CEndian.hpp.
Enurmeration of endianess.
| e_littleEndian | Little endian systems, INTEL WIN32 MACOSX_UNIBIN |
| e_bigEndian | Big endian, MACOSX |
Definition at line 37 of file CEndian.hpp.
| static int Exponent::Host::CEndian::convertThreeBytesToTwentyFourBitInt | ( | const char * | bytes | ) | [static] |
Convert three bytes to a 24 bit int, uses full 32 bit integer range
| bytes | The three data bytes |
| int | The 24 bit int value, in range -0x80000000 to 0x7fffffff |
| static void Exponent::Host::CEndian::convertTwentyFourBitIntToThreeBytes | ( | const int | value, | |
| char * | bytes | |||
| ) | [static] |
Convert three bytes to a 24 bit int, uses full 32 bit integer range
| value | The value to convert in range -0x80000000 to 0x7fffffff | |
| bytes | The three data bytes |
| static CEndian::EEndian Exponent::Host::CEndian::getSystemEndianessCompileTime | ( | ) | [static] |
Get the endianness of a system at compile time
| EEndian | The endianess of the system |
| static CEndian::EEndian Exponent::Host::CEndian::getSystemEndianessRunTime | ( | ) | [static] |
Get the endianness of a system at run time
| EEndian | The endianess of the system |
| static void Exponent::Host::CEndian::swap2Bytes | ( | unsigned char * | buffer | ) | [static] |
Swap 2 bytes
| buffer | Pointer to two chars that is swapped |
| static unsigned int Exponent::Host::CEndian::swapDataBytesIfSystemIsBigEndian | ( | unsigned int | bytes | ) | [static] |
Swap the bytes if we are a big endian system
| bytes | The data bytes |
| unsigned | int The data bytes swap if big endian |
| static unsigned short Exponent::Host::CEndian::swapDataBytesIfSystemIsBigEndian | ( | unsigned short | bytes | ) | [static] |
Swap the bytes if we are a big endian system
| bytes | The data bytes |
| unsigned | short The data bytes swap if big endian |
| static void Exponent::Host::CEndian::swapFourBytesIfSystemIsLittleEndian | ( | unsigned char * | buffer | ) | [static] |
Swap four bytes if system is little endian
| buffer | Pointer to two chars that is swapped, expected to be 4 bytes long |