判断系统内存存储是大端还是小端

1、判断大小端 bool isBigEndian() { unsigned int test=0x1234; if(*((unsigned char *)&test) == 0x12) { return true; } else { return false; } }
相关文章
相关标签/搜索