Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将原始字节数组保存到文件中:
mDataStream.writeRawData( ( (const char *)&testPacket), 188);
测试数据包只是一个无符号字符数组,数据包以正确的大小复制,但字节被重新排序。即:0x47 0x00 0x10 0x20 ... 变为 0x00 0x47 ox20 0x10。
这看起来像一个字节序问题,但我尝试将字节顺序设置为小字节序但结果不成功。