Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visit(WritableBuffer key, WritableBuffer value) throws java.io.IOException
            public bool visit(WritableBuffer key, WritableBuffer value)
            {
                if (done)
                {
                    return(false);
                }
                ReadKeyValuePair(_cursor, offset, key, value);
                if (key.AllZeroes())
                {
                    done = true;
                    return(false);
                }
                offset += key.Size() + value.Size();
                if (offset >= _outerInstance.file.pageSize())
                {
                    offset = 0;
                    if (!_cursor.next())
                    {
                        done = true;
                    }
                }
                return(true);
            }