CSJ2K.j2k.io.BEBufferedRandomAccessFile.readDouble C# (CSharp) Метод

readDouble() публичный Метод

Reads an IEEE double precision (i.e., 64 bit) floating-point number from the input. Prior to reading, the input should be realigned at the byte level.
If the end-of file was reached before /// getting all the necessary data. /// /// If an I/O error ocurred. /// ///
public readDouble ( ) : double
Результат double
        public override double readDouble()
        {
            // CONVERSION PROBLEM?  OPTIMIZE!!!
            //byte[] doublebytes = new byte[8];
            //for (int i = doublebytes.Length-1; i >=0 ; i--) doublebytes[i] = (byte)read();
            //return BitConverter.ToDouble(doublebytes, 0);

            //UPGRADE_ISSUE: Method 'java.lang.Double.longBitsToDouble' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javalangDoublelongBitsToDouble_long'"
            //return Double.longBitsToDouble(((long) read() << 56) | ((long) read() << 48) | ((long) read() << 40) | ((long) read() << 32) | ((long) read() << 24) | ((long) read() << 16) | ((long) read() << 8) | ((long) read()));

            return BitConverter.ToDouble(BitConverter.GetBytes(((long) read() << 56) | ((long) read() << 48) | ((long) read() << 40) | ((long) read() << 32) | ((long) read() << 24) | ((long) read() << 16) | ((long) read() << 8) | ((long) read())), 0);
        }