Is there a function to reverse the byte order of a float?
I’m using the socket functions and have ran into a few issues dealing with endian.
You can use the Buffer class to manipulate data at the byte level.
or use System.BitConverter.GetBytes(value) and just reverse the order in the byte array.
and ofc.
System.BitConverter.ToSingle(array, 0) to convert it back to a float.
//perlohmann