示例#1
0
        public double ReadDouble()
        {
#if INCLUDE_IL2CPP
            return(BitConverter.ToDouble(BitConverter.GetBytes(ReadUInt64()), 0));
#else
            ulong value = ReadUInt64();
            return(FloatConversion.ToDouble(value));
#endif
        }
示例#2
0
        public float ReadSingle()
        {
#if INCLUDE_IL2CPP
            return(BitConverter.ToSingle(BitConverter.GetBytes(ReadUInt32()), 0));
#else
            uint value = ReadUInt32();
            return(FloatConversion.ToSingle(value));
#endif
        }