版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wodownload2/article/details/84636783
https://github.com/bridgedotnet/Bridge/blob/master/Bridge/shared/System/IO/BinaryReader.cs
uint tmpBuffer = 2;
unsafe
{
float a = *((float*)&tmpBuffer);
Console.WriteLine(a);
Console.WriteLine(BitConverter.ToSingle(BitConverter.GetBytes(tmpBuffer), 0));
}