float BLEndianFloat(float fValue)
{
unsigned char s[4], t[4];
float fResult;
memcpy(s, &fValue, sizeof(float));
t[0] = s[3];
t[1] = s[2];
t[2] = s[1];
t[3] = s[0];
memcpy(&fResult, t, sizeof(float));
return fResult;
}
float高低字节序转换c++
![](https://img-home.csdnimg.cn/images/20240711042549.png)