private double ReadDouble(RandomAccessFileOrArray stream) { if (isBigEndian) { return(stream.ReadDouble()); } else { return(stream.ReadDoubleLE()); } }