Beispiel #1
0
        public static double ReadDouble(this Stream self)
        {
            var data = new byte[8];

            return(ByteUtil.ToDouble(Read(self, data)));
        }
Beispiel #2
0
 /// <summary>
 ///   弹出一个double
 /// </summary>
 /// <returns></returns>
 public double PopDouble()
 {
     return(ByteUtil.ToDouble(PopLong().ToBytes()));
 }
Beispiel #3
0
        /// <summary>
        ///   在index位置获取一个double类型的数据
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public double GetDouble(int index)
        {
            var data = GetData(index, 8);

            return(ByteUtil.ToDouble(data));
        }
Beispiel #4
0
 /// <summary>
 ///   获取pos位置的double值
 /// </summary>
 /// <param name="pos"></param>
 /// <returns></returns>
 public double GetDouble(int pos)
 {
     return(ByteUtil.ToDouble(GetLong(pos).ToBytes()));
 }
Beispiel #5
0
        /// <summary>
        ///   获取一个double类型的数据
        /// </summary>
        /// <returns></returns>
        public double GetDouble()
        {
            var data = GetData(8);

            return(ByteUtil.ToDouble(data));
        }