31 static char SwapChar(
char c)
33 static uint16 SwapInt16(uint16 i)
34 {
return (((i&0xFF)<<8) | (i>>8)); }
35 static uint32 SwapInt32(uint32 i)
36 {
return (((i&0xff000000)>>24)
39 | ((i&0x000000ff)<<24)); }
41 static void SwapDouble(
double &d)
43 uchar* pLeft = (uchar *) &d;
44 uchar* pRight = (uchar *) (pLeft +
sizeof(
double) - 1);
46 for (
unsigned int n = 0; n < (
sizeof(double) / 2); n++ )