Lines Matching defs:MemPage

47573 typedef struct MemPage MemPage;
47612 ** stored in MemPage.pBt->mutex.
47614 struct MemPage {
47643 #define EXTRA_SIZE sizeof(MemPage)
47749 MemPage *pPage1; /* First page of the database */
47816 ** The entry is identified by its MemPage and the index in
47817 ** MemPage.aCell[] of the entry.
47847 MemPage *apPage[BTCURSOR_MAX_DEPTH]; /* Pages from root to current page */
48678 static void releasePage(MemPage *pPage); /* Forward reference */
49129 static u8 *findOverflowCell(MemPage *pPage, int iCell){
49157 MemPage *pPage, /* Page containing the cell */
49225 MemPage *pPage, /* Page containing the cell */
49238 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
49294 static u16 cellSize(MemPage *pPage, int iCell){
49305 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
49325 static int defragmentPage(MemPage *pPage){
49415 static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
49514 static int freeSpace(MemPage *pPage, int start, int size){
49597 ** and initialize fields of the MemPage structure accordingly.
49607 static int decodeFlags(MemPage *pPage, int flagByte){
49641 static int btreeInitPage(MemPage *pPage){
49751 static void zeroPage(MemPage *pPage, int flags){
49783 ** Convert a DbPage obtained from the pager into a MemPage used by
49786 static MemPage *btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt){
49787 MemPage *pPage = (MemPage*)sqlite3PagerGetExtra(pDbPage);
49797 ** Get a page from the pager. Initialize the MemPage.pBt and
49798 ** MemPage.aData elements if needed.
49810 MemPage **ppPage, /* Return the page in this parameter */
49825 ** already in the pager cache return NULL. Initialize the MemPage.pBt and
49826 ** MemPage.aData elements if needed.
49828 static MemPage *btreePageLookup(BtShared *pBt, Pgno pgno){
49862 MemPage **ppPage /* Write the page pointer here */
49885 ** Release a MemPage. This should be called once for each prior
49888 static void releasePage(MemPage *pPage){
49908 MemPage *pPage;
49909 pPage = (MemPage *)sqlite3PagerGetExtra(pData);
50557 MemPage *pPage1; /* Page 1 of the database file */
50723 MemPage *pP1;
50892 MemPage *pPage1 = pBt->pPage1;
50936 static int setChildPtrmaps(MemPage *pPage){
50986 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){
51048 MemPage *pDbPage, /* Open page to move */
51054 MemPage *pPtrPage; /* The page that contains a pointer to pDbPage */
51120 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
51172 MemPage *pFreePg;
51182 MemPage *pLastPg;
51197 MemPage *pFreePg;
51222 MemPage *pPg;
51555 MemPage *pPage1;
51969 ** If ppPage is not NULL, and a reference to the MemPage object corresponding
51979 MemPage **ppPage, /* OUT: MemPage handle (may be NULL) */
51983 MemPage *pPage = 0;
52104 MemPage *pPage = pCur->apPage[pCur->iPage]; /* Btree page of current entry */
52299 MemPage *pPage;
52377 MemPage *pNewPage;
52408 static void assertParentIndex(MemPage *pParent, int iIdx, Pgno iChild){
52466 MemPage *pRoot;
52547 MemPage *pPage;
52572 MemPage *pPage = 0;
52725 MemPage *pPage = pCur->apPage[pCur->iPage];
52881 MemPage *pPage;
52949 MemPage *pPage;
53024 MemPage **ppPage,
53029 MemPage *pPage1;
53033 MemPage *pTrunk = 0;
53034 MemPage *pPrevTrunk = 0;
53143 MemPage *pNewTrunk;
53245 MemPage *pPg = 0;
53294 ** If the caller happens to have a pointer to the MemPage object
53298 ** If a pointer to a MemPage object is passed as the second argument,
53301 static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
53302 MemPage *pTrunk = 0; /* Free-list trunk page */
53304 MemPage *pPage1 = pBt->pPage1; /* Local reference to page 1 */
53305 MemPage *pPage; /* Page being freed. May be NULL. */
53423 static void freePage(MemPage *pPage, int *pRC){
53432 static int clearCell(MemPage *pPage, unsigned char *pCell){
53455 MemPage *pOvfl = 0;
53507 MemPage *pPage, /* The page that contains the cell */
53518 MemPage *pOvfl = 0;
53519 MemPage *pToRelease = 0;
53664 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
53722 MemPage *pPage, /* Page into which we are copying */
53813 MemPage *pPage, /* The page to be assemblied */
53890 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
53892 MemPage *pNew; /* Newly allocated page */
53977 static int ptrmapCheckPages(MemPage **apPage, int nPage){
53982 MemPage *pPage = apPage[i];
54022 ** MemPage.aOvfl[] array), they are not copied to pTo.
54030 static void copyNodeContent(MemPage *pFrom, MemPage *pTo, int *pRC){
54050 /* Reinitialize page pTo so that the contents of the MemPage structure
54085 ** might not actually be stored in MemPage.aData[]. This can happen
54087 ** to the page and its siblings fit into MemPage.aData[] before returning.
54112 MemPage *pParent, /* Parent page of siblings being balanced */
54133 MemPage *apOld[NB]; /* pPage and up to two siblings */
54134 MemPage *apCopy[NB]; /* Private copies of apOld[] pages */
54135 MemPage *apNew[NB+2]; /* pPage and up to NB siblings after balancing */
54200 memset(apOld, 0, (i+1)*sizeof(MemPage*));
54232 memset(apOld, 0, (i+1)*sizeof(MemPage*));
54250 k = pBt->pageSize + ROUND8(sizeof(MemPage));
54290 MemPage *pOld = apCopy[i] = (MemPage*)&aSpace1[pBt->pageSize + k*i];
54291 memcpy(pOld, apOld[i], sizeof(MemPage));
54429 MemPage *pNew;
54487 MemPage *pT;
54510 MemPage *pNew = apNew[i];
54636 MemPage *pNew = apNew[0];
54637 MemPage *pOld = apCopy[0];
54748 static int balance_deeper(MemPage *pRoot, MemPage **ppChild){
54750 MemPage *pChild = 0; /* Pointer to a new child page */
54813 MemPage *pPage = pCur->apPage[iPage];
54836 MemPage * const pParent = pCur->apPage[iPage-1];
54949 MemPage *pPage;
55083 MemPage *pPage; /* Page to delete cell from */
55144 MemPage *pLeaf = pCur->apPage[pCur->iPage];
55204 MemPage *pRoot;
55221 MemPage *pPageMove; /* The page to move to. */
55355 MemPage *pPage;
55448 MemPage *pPage = 0;
55500 MemPage *pMove;
55643 MemPage *pPage; /* Current page of the b-tree */
55882 MemPage *pPage;
55908 /* Clear MemPage.isInit to make sure the corruption detection code in
56723 ** Then clear the Btree layer MemPage.isInit flag. Both this module
56726 ** cached parse of the page). MemPage.isInit is marked