Lines Matching refs:MemPage
52331 typedef struct MemPage MemPage;
52372 struct MemPage {
52405 #define EXTRA_SIZE sizeof(MemPage)
52512 MemPage *pPage1; /* First page of the database */
52620 MemPage *apPage[BTCURSOR_MAX_DEPTH]; /* Pages from root to current page */
53511 static void releasePage(MemPage *pPage); /* Forward reference */
54035 static u8 *findOverflowCell(MemPage *pPage, int iCell){
54058 MemPage *pPage, /* Page containing the cell */
54125 MemPage *pPage, /* Page containing the cell */
54138 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
54196 static u16 cellSize(MemPage *pPage, int iCell){
54207 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
54231 static int defragmentPage(MemPage *pPage){
54329 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc, int *pbDefrag){
54391 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
54476 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){
54574 static int decodeFlags(MemPage *pPage, int flagByte){
54625 static int btreeInitPage(MemPage *pPage){
54756 static void zeroPage(MemPage *pPage, int flags){
54792 static MemPage *btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt){
54793 MemPage *pPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
54816 MemPage **ppPage, /* Return the page in this parameter */
54835 static MemPage *btreePageLookup(BtShared *pBt, Pgno pgno){
54869 MemPage **ppPage, /* Write the page pointer here */
54897 static void releasePage(MemPage *pPage){
54918 MemPage *pPage;
54919 pPage = (MemPage *)sqlite3PagerGetExtra(pData);
55647 MemPage *pPage1; /* Page 1 of the database file */
55847 MemPage *pPage1 = pBt->pPage1;
55861 MemPage *pP1;
56048 MemPage *pPage1 = pBt->pPage1;
56093 static int setChildPtrmaps(MemPage *pPage){
56143 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
56205 MemPage *pDbPage, /* Open page to move */
56211 MemPage *pPtrPage; /* The page that contains a pointer to pDbPage */
56277 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
56328 MemPage *pFreePg;
56338 MemPage *pLastPg;
56359 MemPage *pFreePg;
56743 MemPage *pPage1;
57143 MemPage **ppPage, /* OUT: MemPage handle (may be NULL) */
57147 MemPage *pPage = 0;
57269 MemPage *pPage = pCur->apPage[pCur->iPage]; /* Btree page of current entry */
57573 MemPage *pNewPage;
57606 static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild){
57668 MemPage *pRoot;
57743 MemPage *pPage;
57768 MemPage *pPage = 0;
57937 MemPage *pPage = pCur->apPage[pCur->iPage];
58122 MemPage *pPage;
58187 MemPage *pPage;
58231 MemPage *pPage;
58331 MemPage **ppPage, /* Store pointer to the allocated page here */
58336 MemPage *pPage1;
58340 MemPage *pTrunk = 0;
58341 MemPage *pPrevTrunk = 0;
58468 MemPage *pNewTrunk;
58600 MemPage *pPg = 0;
58657 static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
58658 MemPage *pTrunk = 0; /* Free-list trunk page */
58660 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
58661 MemPage *pPage; /* Page being freed. May be NULL. */
58784 static void freePage(MemPage *pPage, int *pRC){
58796 MemPage *pPage, /* The page that contains the Cell */
58823 MemPage *pOvfl = 0;
58875 MemPage *pPage, /* The page that contains the cell */
58886 MemPage *pOvfl = 0;
58887 MemPage *pToRelease = 0;
59065 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
59120 MemPage *pPage, /* Page into which we are copying */
59212 MemPage *pPg, /* Edit this page */
59278 MemPage *pPg, /* Page to add cells to */
59318 MemPage *pPg, /* Page to edit */
59370 MemPage *pPg, /* Edit this page */
59506 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
59508 MemPage *pNew; /* Newly allocated page */
59594 static int ptrmapCheckPages(MemPage **apPage, int nPage){
59599 MemPage *pPage = apPage[i];
59647 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
59732 MemPage *pParent, /* Parent page of siblings being balanced */
59754 MemPage *apOld[NB]; /* pPage and up to two siblings */
59755 MemPage *apNew[NB+2]; /* pPage and up to NB siblings after balancing */
59826 memset(apOld, 0, (i+1)*sizeof(MemPage*));
59860 memset(apOld, 0, (i+1)*sizeof(MemPage*));
59915 MemPage *pOld = apOld[i];
60061 MemPage *pNew;
60152 MemPage *pOld = (nNew>nOld ? apNew : apOld)[nOld-1];
60173 MemPage *pNew = apNew[0];
60183 MemPage *pOld = (++iOld)<nNew ? apNew[iOld] : apOld[iOld];
60218 MemPage *pNew = apNew[i];
60423 static int balance_deeper(MemPage *pRoot, MemPage **ppChild){
60425 MemPage *pChild = 0; /* Pointer to a new child page */
60491 MemPage *pPage = pCur->apPage[iPage];
60514 MemPage * const pParent = pCur->apPage[iPage-1];
60629 MemPage *pPage;
60771 MemPage *pPage; /* Page to delete cell from */
60834 MemPage *pLeaf = pCur->apPage[pCur->iPage];
60892 MemPage *pRoot;
60909 MemPage *pPageMove; /* The page to move to. */
61050 MemPage *pPage;
61160 MemPage *pPage = 0;
61212 MemPage *pMove;
61368 MemPage *pPage; /* Current page of the b-tree */
61676 MemPage *pPage;
62315 SQLITE_PRIVATE int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }