判断计算机的字节存储顺序big endian or little endian? short usData = 0x1122; char *pucData = (char*)&usData; bool bBigEndian = (*pucData == 0x22);