Lucene.Net.Store.BufferedIndexInput.ReadLong C# (CSharp) Method

ReadLong() public final method

public final ReadLong ( ) : long
return long
        public override sealed long ReadLong()
        {
            if (8 <= (BufferLength - BufferPosition))
            {
                int i1 = ((Buffer[BufferPosition++] & 0xff) << 24) | ((Buffer[BufferPosition++] & 0xff) << 16) | ((Buffer[BufferPosition++] & 0xff) << 8) | (Buffer[BufferPosition++] & 0xff);
                int i2 = ((Buffer[BufferPosition++] & 0xff) << 24) | ((Buffer[BufferPosition++] & 0xff) << 16) | ((Buffer[BufferPosition++] & 0xff) << 8) | (Buffer[BufferPosition++] & 0xff);
                return (((long)i1) << 32) | (i2 & 0xFFFFFFFFL);
            }
            else
            {
                return base.ReadLong();
            }
        }