示例#1
0
        /// <summary>
        /// Provides direct access to the underlying row parser for any row or subrow
        /// </summary>
        /// <param name="row">The row id to seek to</param>
        /// <param name="subRow">The subrow id to seek to</param>
        /// <returns>A <see cref="RowParser"/> instance</returns>
        public RowParser GetRowParser(uint row, uint subRow = uint.MaxValue)
        {
            var page = GetPageForRow(row);

            if (page == null)
            {
                return(null);
            }

            RowParser parser = null !;

            if (subRow != uint.MaxValue)
            {
                parser = new RowParser(this, page.File, row, subRow);
            }
            else
            {
                parser = new RowParser(this, page.File, row);
            }

            return(parser);
        }