/// <summary> /// /// </summary> /// <param name="v"></param> public void WriteFloat(float v) { FloatConverter floatConverter = new FloatConverter(); WriteInt(FloatConverter.ToInt(v, ref floatConverter)); }
/// <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); }
/// <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); }
/// <summary> /// /// </summary> /// <returns></returns> public float ReadFloat() { FloatConverter floatConverter = new FloatConverter(); return FloatConverter.ToFloat(ReadInt(), ref floatConverter); }
/// <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; }
/// <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; }
/// <summary> /// /// </summary> /// <returns></returns> public float ReadFloat() { FloatConverter floatConverter = new FloatConverter(); return(FloatConverter.ToFloat(ReadInt(), ref floatConverter)); }