Lines Matching refs:MemPage

52313 typedef struct MemPage MemPage;
52354 struct MemPage {
52387 #define EXTRA_SIZE sizeof(MemPage)
52494 MemPage *pPage1; /* First page of the database */
52602 MemPage *apPage[BTCURSOR_MAX_DEPTH]; /* Pages from root to current page */
53493 static void releasePage(MemPage *pPage); /* Forward reference */
54017 static u8 *findOverflowCell(MemPage *pPage, int iCell){
54040 MemPage *pPage, /* Page containing the cell */
54107 MemPage *pPage, /* Page containing the cell */
54120 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
54178 static u16 cellSize(MemPage *pPage, int iCell){
54189 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
54213 static int defragmentPage(MemPage *pPage){
54311 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc, int *pbDefrag){
54373 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
54458 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){
54556 static int decodeFlags(MemPage *pPage, int flagByte){
54607 static int btreeInitPage(MemPage *pPage){
54738 static void zeroPage(MemPage *pPage, int flags){
54774 static MemPage *btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt){
54775 MemPage *pPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
54798 MemPage **ppPage, /* Return the page in this parameter */
54817 static MemPage *btreePageLookup(BtShared *pBt, Pgno pgno){
54851 MemPage **ppPage, /* Write the page pointer here */
54879 static void releasePage(MemPage *pPage){
54900 MemPage *pPage;
54901 pPage = (MemPage *)sqlite3PagerGetExtra(pData);
55629 MemPage *pPage1; /* Page 1 of the database file */
55829 MemPage *pPage1 = pBt->pPage1;
55843 MemPage *pP1;
56030 MemPage *pPage1 = pBt->pPage1;
56075 static int setChildPtrmaps(MemPage *pPage){
56125 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
56187 MemPage *pDbPage, /* Open page to move */
56193 MemPage *pPtrPage; /* The page that contains a pointer to pDbPage */
56259 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
56310 MemPage *pFreePg;
56320 MemPage *pLastPg;
56341 MemPage *pFreePg;
56725 MemPage *pPage1;
57125 MemPage **ppPage, /* OUT: MemPage handle (may be NULL) */
57129 MemPage *pPage = 0;
57251 MemPage *pPage = pCur->apPage[pCur->iPage]; /* Btree page of current entry */
57555 MemPage *pNewPage;
57588 static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild){
57650 MemPage *pRoot;
57725 MemPage *pPage;
57750 MemPage *pPage = 0;
57919 MemPage *pPage = pCur->apPage[pCur->iPage];
58104 MemPage *pPage;
58169 MemPage *pPage;
58213 MemPage *pPage;
58313 MemPage **ppPage, /* Store pointer to the allocated page here */
58318 MemPage *pPage1;
58322 MemPage *pTrunk = 0;
58323 MemPage *pPrevTrunk = 0;
58450 MemPage *pNewTrunk;
58582 MemPage *pPg = 0;
58639 static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
58640 MemPage *pTrunk = 0; /* Free-list trunk page */
58642 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
58643 MemPage *pPage; /* Page being freed. May be NULL. */
58766 static void freePage(MemPage *pPage, int *pRC){
58778 MemPage *pPage, /* The page that contains the Cell */
58805 MemPage *pOvfl = 0;
58857 MemPage *pPage, /* The page that contains the cell */
58868 MemPage *pOvfl = 0;
58869 MemPage *pToRelease = 0;
59047 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
59102 MemPage *pPage, /* Page into which we are copying */
59194 MemPage *pPg, /* Edit this page */
59260 MemPage *pPg, /* Page to add cells to */
59300 MemPage *pPg, /* Page to edit */
59352 MemPage *pPg, /* Edit this page */
59488 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
59490 MemPage *pNew; /* Newly allocated page */
59576 static int ptrmapCheckPages(MemPage **apPage, int nPage){
59581 MemPage *pPage = apPage[i];
59629 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
59714 MemPage *pParent, /* Parent page of siblings being balanced */
59736 MemPage *apOld[NB]; /* pPage and up to two siblings */
59737 MemPage *apNew[NB+2]; /* pPage and up to NB siblings after balancing */
59808 memset(apOld, 0, (i+1)*sizeof(MemPage*));
59842 memset(apOld, 0, (i+1)*sizeof(MemPage*));
59897 MemPage *pOld = apOld[i];
60043 MemPage *pNew;
60134 MemPage *pOld = (nNew>nOld ? apNew : apOld)[nOld-1];
60155 MemPage *pNew = apNew[0];
60165 MemPage *pOld = (++iOld)<nNew ? apNew[iOld] : apOld[iOld];
60200 MemPage *pNew = apNew[i];
60405 static int balance_deeper(MemPage *pRoot, MemPage **ppChild){
60407 MemPage *pChild = 0; /* Pointer to a new child page */
60473 MemPage *pPage = pCur->apPage[iPage];
60496 MemPage * const pParent = pCur->apPage[iPage-1];
60611 MemPage *pPage;
60753 MemPage *pPage; /* Page to delete cell from */
60816 MemPage *pLeaf = pCur->apPage[pCur->iPage];
60874 MemPage *pRoot;
60891 MemPage *pPageMove; /* The page to move to. */
61032 MemPage *pPage;
61142 MemPage *pPage = 0;
61194 MemPage *pMove;
61350 MemPage *pPage; /* Current page of the b-tree */
61658 MemPage *pPage;
62297 SQLITE_PRIVATE int sqlite3HeaderSizeBtree(void){ return ROUND8(sizeof(MemPage)); }