Lines Matching refs:MemPage

58193 typedef struct MemPage MemPage;
58234 struct MemPage {
58262 u16 (*xCellSize)(MemPage*,u8*); /* cellSizePtr method */
58263 void (*xParseCell)(MemPage*,u8*,CellInfo*); /* btreeParseCell method */
58372 MemPage *pPage1; /* First page of the database */
58484 MemPage *apPage[BTCURSOR_MAX_DEPTH]; /* Pages from root to current page */
59400 static void releasePage(MemPage *pPage); /* Forward reference */
59993 MemPage *pPage, /* Page containing the cell */
60038 MemPage *pPage, /* Page containing the cell */
60055 MemPage *pPage, /* Page containing the cell */
60123 MemPage *pPage, /* Page containing the cell */
60160 MemPage *pPage, /* Page containing the cell */
60179 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
60227 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
60253 static u16 cellSize(MemPage *pPage, int iCell){
60264 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
60289 static int defragmentPage(MemPage *pPage, int nMaxFrag){
60427 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){
60490 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
60580 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){
60682 static int decodeFlags(MemPage *pPage, int flagByte){
60740 static int btreeInitPage(MemPage *pPage){
60876 static void zeroPage(MemPage *pPage, int flags){
60913 static MemPage *btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt){
60914 MemPage *pPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
60940 MemPage **ppPage, /* Return the page in this parameter */
60959 static MemPage *btreePageLookup(BtShared *pBt, Pgno pgno){
60998 MemPage **ppPage, /* Write the page pointer here */
61017 *ppPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
61049 static void releasePageNotNull(MemPage *pPage){
61058 static void releasePage(MemPage *pPage){
61074 MemPage **ppPage, /* Return the page in this parameter */
61101 MemPage *pPage;
61102 pPage = (MemPage *)sqlite3PagerGetExtra(pData);
61294 sizeof(MemPage), flags, vfsFlags, pageReinit);
61859 MemPage *pPage1; /* Page 1 of the database file */
62064 MemPage *pPage1 = pBt->pPage1;
62078 MemPage *pP1;
62267 MemPage *pPage1 = pBt->pPage1;
62312 static int setChildPtrmaps(MemPage *pPage){
62357 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
62420 MemPage *pDbPage, /* Open page to move */
62426 MemPage *pPtrPage; /* The page that contains a pointer to pDbPage */
62492 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
62543 MemPage *pFreePg;
62553 MemPage *pLastPg;
62574 MemPage *pFreePg;
62958 MemPage *pPage1;
63360 MemPage **ppPage, /* OUT: MemPage handle (may be NULL) */
63364 MemPage *pPage = 0;
63485 MemPage *pPage = pCur->apPage[pCur->iPage]; /* Btree page of current entry */
63808 static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild){
63868 MemPage *pRoot;
63953 MemPage *pPage;
63978 MemPage *pPage = 0;
64168 MemPage *pPage = pCur->apPage[pCur->iPage];
64391 MemPage *pPage;
64456 MemPage *pPage;
64500 MemPage *pPage;
64599 MemPage **ppPage, /* Store pointer to the allocated page here */
64604 MemPage *pPage1;
64608 MemPage *pTrunk = 0;
64609 MemPage *pPrevTrunk = 0;
64737 MemPage *pNewTrunk;
64870 MemPage *pPg = 0;
64919 static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
64920 MemPage *pTrunk = 0; /* Free-list trunk page */
64922 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
64923 MemPage *pPage; /* Page being freed. May be NULL. */
65047 static void freePage(MemPage *pPage, int *pRC){
65059 MemPage *pPage, /* The page that contains the Cell */
65086 MemPage *pOvfl = 0;
65138 MemPage *pPage, /* The page that contains the cell */
65147 MemPage *pOvfl = 0;
65148 MemPage *pToRelease = 0;
65314 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
65370 MemPage *pPage, /* Page into which we are copying */
65465 MemPage *pRef; /* Reference page */
65518 MemPage *pPg, /* Edit this page */
65587 MemPage *pPg, /* Page to add cells to */
65633 MemPage *pPg, /* Page to edit */
65690 MemPage *pPg, /* Edit this page */
65823 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
65825 MemPage *pNew; /* Newly allocated page */
65914 static int ptrmapCheckPages(MemPage **apPage, int nPage){
65919 MemPage *pPage = apPage[i];
65967 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
66049 MemPage *pParent, /* Parent page of siblings being balanced */
66069 MemPage *apOld[NB]; /* pPage and up to two siblings */
66070 MemPage *apNew[NB+2]; /* pPage and up to NB siblings after balancing */
66142 memset(apOld, 0, (i+1)*sizeof(MemPage*));
66176 memset(apOld, 0, (i+1)*sizeof(MemPage*));
66231 MemPage *pOld = apOld[i];
66338 MemPage *p = apOld[i];
66450 MemPage *pNew;
66541 MemPage *pOld = (nNew>nOld ? apNew : apOld)[nOld-1];
66562 MemPage *pNew = apNew[0];
66572 MemPage *pOld = (++iOld)<nNew ? apNew[iOld] : apOld[iOld];
66607 MemPage *pNew = apNew[i];
66811 static int balance_deeper(MemPage *pRoot, MemPage **ppChild){
66813 MemPage *pChild = 0; /* Pointer to a new child page */
66879 MemPage *pPage = pCur->apPage[iPage];
66903 MemPage * const pParent = pCur->apPage[iPage-1];
67025 MemPage *pPage;
67236 MemPage *pPage; /* Page to delete cell from */
67322 MemPage *pLeaf = pCur->apPage[pCur->iPage];
67399 MemPage *pRoot;
67416 MemPage *pPageMove; /* The page to move to. */
67558 MemPage *pPage;
67669 MemPage *pPage = 0;
67708 MemPage *pMove;
67856 MemPage *pPage; /* Current page of the b-tree */
68162 MemPage *pPage = 0; /* The page being analyzed */
68796 SQLITE_PRIVATE int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }