示例#1
0
        private static float _BitConverter_Int32BitsToSingle(int value)
        {
            // return *((float*)&value); // Requires UNSAFE

            _Int32BitsSingleFusion tmp = default;

            tmp.Integer = value;
            return(tmp.Floating);
        }
示例#2
0
        private static int _BitConverter_SingleToInt32Bits(float value)
        {
            // return *((int*)&value); // Requires UNSAFE

            _Int32BitsSingleFusion tmp = default;

            tmp.Floating = value;
            return(tmp.Integer);
        }