예제 #1
0
        // was:assertCellInfo
        private void AssertCellInfo()
        {
            var id   = PageID;
            var info = new MemPage.CellInfo();

            Pages[id].ParseCell(PagesIndexs[id], ref info);
            Debug.Assert(info.GetHashCode() == Info.GetHashCode() || info.Equals(Info));
        }
예제 #2
0
        public uint[] OverflowIDs; // Cache of overflow page locations

        #endif

        #region Methods

        // was:sqlite3BtreeCursorZero
        public void Zero()
        {
            Next = null;
            Prev = null;
            KeyInfo = null;
            RootID = 0;
            _cachedRowID = 0;
            Info = new MemPage.CellInfo();
            Writeable = false;
            AtLast = false;
            ValidNKey = false;
            State = 0;
            Key = null;
            NKey = 0;
            SkipNext = 0;
            #if !SQLITE_OMIT_INCRBLOB
            IsIncrblob = false;
            OverflowIDs = null;
            #endif
            PageID = 0;
        }
예제 #3
0
        public MemPage[] Pages = new MemPage[BTCURSOR_MAX_DEPTH];     // Pages from root to current page

        // was:sqlite3BtreeCursorZero
        public void Zero()
        {
            Next         = null;
            Prev         = null;
            KeyInfo      = null;
            RootID       = 0;
            _cachedRowID = 0;
            Info         = new MemPage.CellInfo();
            Writeable    = false;
            AtLast       = false;
            ValidNKey    = false;
            State        = 0;
            Key          = null;
            NKey         = 0;
            SkipNext     = 0;
#if !SQLITE_OMIT_INCRBLOB
            IsIncrblob  = false;
            OverflowIDs = null;
#endif
            PageID = 0;
        }
 // was:assertCellInfo
 private void AssertCellInfo()
 {
     var id = PageID;
     var info = new MemPage.CellInfo();
     Pages[id].ParseCell(PagesIndexs[id], ref info);
     Debug.Assert(info.GetHashCode() == Info.GetHashCode() || info.Equals(Info));
 }