CSJ2K.j2k.io.BEBufferedRandomAccessFile.readLong C# (CSharp) Method

readLong() public method

Reads a signed long (i.e., 64 bit) 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 readLong ( ) : long
return long
        public override long readLong()
        {
            //byte[] longbytes = new byte[8];
            //for (int i = longbytes.Length-1; i >= 0; i--) longbytes[i] = read();
            //return BitConverter.ToInt64(longbytes, 0);
            return ((long)(((ulong) read() << 56) | ((ulong) read() << 48) | ((ulong) read() << 40) | ((ulong) read() << 32) | ((ulong) read() << 24) | ((ulong) read() << 16) | ((ulong) read() << 8) | ((ulong) read())));
        }