/// <summary> /// 읽기 - double /// </summary> /// <returns>값</returns> public double ReadDouble() { double value = 0; long valueLong = ReadInt64(); if (_error) { return(value); } return(FloatToInt.ToDouble(valueLong)); }
/// <summary> /// 읽기 - float /// </summary> /// <returns>값</returns> public float ReadSingle() { float value = 0; int valueInt = ReadInt32(); if (_error) { return(value); } return(FloatToInt.ToSingle(valueInt)); }
public void WriteDouble(double value) { long valueLong = FloatToInt.ToLong(value); WriteInt64(valueLong); }
public void WriteSingle(float value) { int valueInt = FloatToInt.ToInt(value); WriteInt32(valueInt); }