public static double ReadDouble(this MemoryStream stream) { var res = BStruct.ToDouble(stream.GetBuffer(), (int)stream.Position); stream.Position += 8; return(res); }
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)); }
public double ReadDouble() { ReadTypeCode(RencodeTypeCode.Double); var buffer = new byte[8]; stream.Read(buffer, 0, buffer.Length); return(BStruct.ToDouble(buffer, 0)); }