예제 #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="v"></param>
        public void WriteFloat(float v)
        {
            FloatConverter floatConverter = new FloatConverter();

            WriteInt(FloatConverter.ToInt(v, ref floatConverter));
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="value"></param>
        /// <param name="converter"></param>
        /// <returns></returns>
        public static float ToFloat(int value, ref FloatConverter converter)
        {
            converter.intValue = value;

            return(converter.floatValue);
        }
예제 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="value"></param>
        /// <param name="converter"></param>
        /// <returns></returns>
        public static int ToInt(float value, ref FloatConverter converter)
        {
            converter.floatValue = value;

            return(converter.intValue);
        }
예제 #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public float ReadFloat()
        {
            FloatConverter floatConverter = new FloatConverter();

            return FloatConverter.ToFloat(ReadInt(), ref floatConverter);
        }
예제 #5
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        /// <param name="converter"></param>
        /// <returns></returns>
        public static int ToInt(float value, ref FloatConverter converter)
        {
            converter.floatValue = value;

            return converter.intValue;
        }
예제 #6
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        /// <param name="converter"></param>
        /// <returns></returns>
        public static float ToFloat(int value, ref FloatConverter converter)
        {
            converter.intValue = value;

            return converter.floatValue;
        }
예제 #7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="v"></param>
        public void WriteFloat(float v)
        {
            FloatConverter floatConverter = new FloatConverter();

            WriteInt(FloatConverter.ToInt(v, ref floatConverter));
        }
예제 #8
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public float ReadFloat()
        {
            FloatConverter floatConverter = new FloatConverter();

            return(FloatConverter.ToFloat(ReadInt(), ref floatConverter));
        }