using System.Runtime.CompilerServices;
using System.Buffers.Binary;
static byte[] FLOAT = new byte[sizeof(float)];
for (int i = 0; i < 10_000_000; i++)
Unsafe.As<int, float>(ref tmp) = 123.456f;
Console.WriteLine( Unsafe.As<int, float>(ref tmp) );
Console.WriteLine( tmp );
var buff = new byte[sizeof(int)];
BinaryPrimitives.WriteInt32BigEndian(buff, tmp);
Console.WriteLine( BinaryPrimitives.ReadInt32BigEndian(buff) );
Console.WriteLine( BinaryPrimitives.ReadSingleBigEndian(buff) );