ENDIAN_TYPE endianType()
{
double dValue = 1.982031;
unsigned char* pChar = (unsigned char*)&dValue;
if(0 == strncmp(pChar, "\xE4\x87\x4A\x23\x66\xB6\xFF\x3F", 8))
return LITLE_ENDIAN;
else if(0 == strncmp(pChar, "\3F\xFF\xB6\x66\x23\x4A\x87\xE4", 8))
return BIG_ENDIAN;
else if(0 == strncmp(pChar, "\x66\xB6\xFF\x3F\xE4\x87\x4A\x23", 8))
return MIDLLE_ENDIAN;
else
return ERROR_ENDIAN;
}