Example #1
0
        /// <summary>
        /// 읽기 - double
        /// </summary>
        /// <returns>값</returns>
        public double ReadDouble()
        {
            double value     = 0;
            long   valueLong = ReadInt64();

            if (_error)
            {
                return(value);
            }

            return(FloatToInt.ToDouble(valueLong));
        }
Example #2
0
        /// <summary>
        /// 읽기 - float
        /// </summary>
        /// <returns>값</returns>
        public float ReadSingle()
        {
            float value    = 0;
            int   valueInt = ReadInt32();

            if (_error)
            {
                return(value);
            }

            return(FloatToInt.ToSingle(valueInt));
        }
Example #3
0
        public void WriteDouble(double value)
        {
            long valueLong = FloatToInt.ToLong(value);

            WriteInt64(valueLong);
        }
Example #4
0
        public void WriteSingle(float value)
        {
            int valueInt = FloatToInt.ToInt(value);

            WriteInt32(valueInt);
        }