private static float _BitConverter_Int32BitsToSingle(int value) { // return *((float*)&value); // Requires UNSAFE _Int32BitsSingleFusion tmp = default; tmp.Integer = value; return(tmp.Floating); }
private static int _BitConverter_SingleToInt32Bits(float value) { // return *((int*)&value); // Requires UNSAFE _Int32BitsSingleFusion tmp = default; tmp.Floating = value; return(tmp.Integer); }