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

            return(FloatConversion.ToDouble(value));
        }
Exemplo n.º 4
0
        public float ReadSingle()
        {
            uint value = this.ReadUInt32();

            return(FloatConversion.ToSingle(value));
        }
Exemplo n.º 5
0
 /// <summary>
 ///   <para>Reads a double from the stream.</para>
 /// </summary>
 /// <returns>
 ///   <para>Value read.</para>
 /// </returns>
 public double ReadDouble()
 {
     return(FloatConversion.ToDouble(this.ReadUInt64()));
 }
Exemplo n.º 6
0
 /// <summary>
 ///   <para>Reads a float from the stream.</para>
 /// </summary>
 /// <returns>
 ///   <para>Value read.</para>
 /// </returns>
 public float ReadSingle()
 {
     return(FloatConversion.ToSingle(this.ReadUInt32()));
 }
Exemplo n.º 7
0
 /// <summary>
 /// <para>Reads a float from the stream.</para>
 /// </summary>
 /// <returns>
 /// <para>Value read.</para>
 /// </returns>
 public float ReadSingle() =>
 FloatConversion.ToSingle(this.ReadUInt32());
Exemplo n.º 8
0
 /// <summary>
 /// <para>Reads a double from the stream.</para>
 /// </summary>
 /// <returns>
 /// <para>Value read.</para>
 /// </returns>
 public double ReadDouble() =>
 FloatConversion.ToDouble(this.ReadUInt64());