I m sure this question has been asked many times before, so I did a quick search and found this Wikipedia page that explains the structure of a floating point value.
我在由某些浮动点值(游戏)组成的网络上发送和接收数据,导致我提出以下问题:
- Do I have to worry about endianness?
- If endianness matters, how can I extract these values without doing a
*(float*)
cast or a union? (such as the trick with bit shifting for integers)
提前感谢。