Lines Matching refs:MemPage
62438 typedef struct MemPage MemPage;
62479 struct MemPage {
62507 u16 (*xCellSize)(MemPage*,u8*); /* cellSizePtr method */
62508 void (*xParseCell)(MemPage*,u8*,CellInfo*); /* btreeParseCell method */
62617 MemPage *pPage1; /* First page of the database */
62738 MemPage *pPage; /* Current page */
62739 MemPage *apPage[BTCURSOR_MAX_DEPTH-1]; /* Stack of parents of current page */
63338 int corruptPageError(int lineno, MemPage *p){
63683 static void releasePage(MemPage *pPage); /* Forward reference */
63684 static void releasePageOne(MemPage *pPage); /* Forward reference */
63685 static void releasePageNotNull(MemPage *pPage); /* Forward reference */
64313 MemPage *pPage, /* Page containing the cell */
64358 MemPage *pPage, /* Page containing the cell */
64375 MemPage *pPage, /* Page containing the cell */
64443 MemPage *pPage, /* Page containing the cell */
64480 MemPage *pPage, /* Page containing the cell */
64499 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
64547 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
64573 static u16 cellSize(MemPage *pPage, int iCell){
64585 static void ptrmapPutOvflPtr(MemPage *pPage, MemPage *pSrc, u8 *pCell,int *pRC){
64616 static int defragmentPage(MemPage *pPage, int nMaxFrag){
64752 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
64820 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
64911 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){
65017 static int decodeFlags(MemPage *pPage, int flagByte){
65070 static int btreeComputeFreeSpace(MemPage *pPage){
65152 static SQLITE_NOINLINE int btreeCellSizeCheck(MemPage *pPage){
65193 static int btreeInitPage(MemPage *pPage){
65246 static void zeroPage(MemPage *pPage, int flags){
65283 static MemPage *btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt){
65284 MemPage *pPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
65310 MemPage **ppPage, /* Return the page in this parameter */
65329 static MemPage *btreePageLookup(BtShared *pBt, Pgno pgno){
65368 MemPage **ppPage, /* Write the page pointer here */
65387 *ppPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
65424 static void releasePageNotNull(MemPage *pPage){
65433 static void releasePage(MemPage *pPage){
65436 static void releasePageOne(MemPage *pPage){
65459 MemPage **ppPage, /* Return the page in this parameter */
65486 MemPage *pPage;
65487 pPage = (MemPage *)sqlite3PagerGetExtra(pData);
65680 sizeof(MemPage), flags, vfsFlags, pageReinit);
66267 MemPage *pPage1; /* Page 1 of the database file */
66476 MemPage *pPage1 = pBt->pPage1;
66490 MemPage *pP1;
66691 MemPage *pPage1 = pBt->pPage1;
66740 static int setChildPtrmaps(MemPage *pPage){
66785 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
66848 MemPage *pDbPage, /* Open page to move */
66854 MemPage *pPtrPage; /* The page that contains a pointer to pDbPage */
66921 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
66972 MemPage *pFreePg;
66982 MemPage *pLastPg;
67003 MemPage *pFreePg;
67383 MemPage *pPage1;
67821 MemPage **ppPage, /* OUT: MemPage handle (may be NULL) */
67825 MemPage *pPage = 0;
67946 MemPage *pPage = pCur->pPage; /* Btree page of current entry */
68273 static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild){
68296 MemPage *pLeaf;
68337 MemPage *pRoot;
68426 MemPage *pPage;
68451 MemPage *pPage = 0;
68642 MemPage *pPage = pCur->pPage;
68867 MemPage *pPage;
68932 MemPage *pPage;
68973 MemPage *pPage;
69060 MemPage **ppPage, /* Store pointer to the allocated page here */
69065 MemPage *pPage1;
69069 MemPage *pTrunk = 0;
69070 MemPage *pPrevTrunk = 0;
69198 MemPage *pNewTrunk;
69331 MemPage *pPg = 0;
69380 static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
69381 MemPage *pTrunk = 0; /* Free-list trunk page */
69383 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
69384 MemPage *pPage; /* Page being freed. May be NULL. */
69510 static void freePage(MemPage *pPage, int *pRC){
69521 MemPage *pPage, /* The page that contains the Cell */
69552 MemPage *pOvfl = 0;
69604 MemPage *pPage, /* The page that contains the cell */
69613 MemPage *pToRelease;
69727 MemPage *pOvfl = 0;
69793 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
69850 MemPage *pPage, /* Page into which we are copying */
70032 MemPage *pRef; /* Reference page */
70090 MemPage *pPg /* The page to be reconstructed */
70178 MemPage *pPg, /* Page to add cells to */
70242 MemPage *pPg, /* Page to edit */
70299 MemPage *pPg, /* Edit this page */
70425 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
70427 MemPage *pNew; /* Newly allocated page */
70527 static int ptrmapCheckPages(MemPage **apPage, int nPage){
70532 MemPage *pPage = apPage[i];
70580 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
70663 MemPage *pParent, /* Parent page of siblings being balanced */
70683 MemPage *apOld[NB]; /* pPage and up to two siblings */
70684 MemPage *apNew[NB+2]; /* pPage and up to NB siblings after balancing */
70753 memset(apOld, 0, (i+1)*sizeof(MemPage*));
70759 memset(apOld, 0, (i)*sizeof(MemPage*));
70793 memset(apOld, 0, (i+1)*sizeof(MemPage*));
70847 MemPage *pOld = apOld[i];
70954 MemPage *p = apOld[i];
71077 MemPage *pNew;
71168 MemPage *pOld = (nNew>nOld ? apNew : apOld)[nOld-1];
71189 MemPage *pOld;
71190 MemPage *pNew = pOld = apNew[0];
71234 MemPage *pNew = apNew[i];
71439 static int balance_deeper(MemPage *pRoot, MemPage **ppChild){
71441 MemPage *pChild = 0; /* Pointer to a new child page */
71507 MemPage *pPage = pCur->pPage;
71534 MemPage * const pParent = pCur->apPage[iPage-1];
71623 MemPage *pPage, /* MemPage on which writing will occur */
71669 MemPage *pPage = pCur->pPage; /* Page being written */
71752 MemPage *pPage;
72019 MemPage *pPage; /* Page to delete cell from */
72110 MemPage *pLeaf = pCur->pPage;
72201 MemPage *pRoot;
72218 MemPage *pPageMove; /* The page to move to. */
72360 MemPage *pPage;
72471 MemPage *pPage = 0;
72513 MemPage *pMove;
72661 MemPage *pPage; /* Current page of the b-tree */
72963 MemPage *pPage = 0; /* The page being analyzed */
73621 SQLITE_PRIVATE int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }