ToDouble() 공개 정적인 메소드

Converts byte array to Double (64 bit float)
public static ToDouble ( byte value, int startIndex ) : double
value byte
startIndex int
리턴 double
        public static double ReadDouble(this MemoryStream stream)
        {
            var res = BStruct.ToDouble(stream.GetBuffer(), (int)stream.Position);

            stream.Position += 8;
            return(res);
        }
예제 #2
0
        private static object DecodeDouble(string x, int startIndex, out int endIndex)
        {
            startIndex += 1;
            endIndex    = startIndex + 8;

            return(BStruct.ToDouble(Util.StringBytes(x.Substring(startIndex, 8)), 0));
        }
예제 #3
0
        public double ReadDouble()
        {
            ReadTypeCode(RencodeTypeCode.Double);

            var buffer = new byte[8];

            stream.Read(buffer, 0, buffer.Length);

            return(BStruct.ToDouble(buffer, 0));
        }