请问字节顺序应如何排列?大端还是小端?例如:我希望得到转换出来的数是:0afd89d1 temp[0] = 0x0a; temp[1] = 0xfd; temp[2] = 0x89; temp[3] = 0xd1; result = BitConverter.ToInt32(temp, 0);按我的语句能转换出来0afd89d1吗?
不能!按你的temp数组,转换的结果是d189fd0a
改成这样的
输出结果是0afd89d1