Is it possible to convert float
s from big to little endian? I have a big endian value from a PowerPC platform that I am sendING via TCP to a Windows process (little endian). This value is a float
, but when I memcpy
the value into a Win32 float type and then call _byteswap_ulong
on that value, I always get 0.0000?
What am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…