Esempio n. 1
0
        public RawDataSection(LowLevelTransaction tx, long pageNumber)
        {
            PageNumber   = pageNumber;
            _tx          = tx;
            _pageSize    = _tx.DataPager.PageSize;
            _pageLocator = new PageLocator(_tx, 8);

            MaxItemSize = (_pageSize - sizeof(RawDataSmallPageHeader)) / 2;

            _sectionHeader = (RawDataSmallSectionPageHeader *)_pageLocator.GetReadOnlyPage(pageNumber).Pointer;
        }
Esempio n. 2
0
        internal TreePage GetReadOnlyTreePage(long pageNumber)
        {
            var page = _pageLocator.GetReadOnlyPage(pageNumber);

            return(new TreePage(page.Pointer, _pageLocator.PageSize));
        }