2010年3月25日 星期四

Check Endianness

bool isLittleEndian(){
const WORD endian = 0x1234;
return *((BYTE*)&endian) == 0x34;
}