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.
我需要在 C# 中从大端转换为小端。我有一个通过 UDP 接收到的字节数组(byte[])。如何将大端字节[] 转换为小端浮点然后打印?请给我指路。
简单的,
byte[] data = GetFromUDPInBigEndian(); Array.Reverse(data); // now is in little endian