Home | History | Annotate | Download | only in orig

Lines Matching refs:nFree

42307   int nFree = 0;
42313 while( (nReq<0 || nFree<nReq)
42317 nFree += pcache1MemSize(p->page.pBuf);
42319 nFree += sqlite3MemSize(p);
42327 return nFree;
53791 u16 nFree; /* Number of free bytes on the page */
55884 if( cbrk-iCellFirst!=pPage->nFree ){
55978 assert( pPage->nFree>=nByte );
56140 pPage->nFree += iOrigSize;
56233 int nFree; /* Number of unused bytes on the page */
56306 nFree = data[hdr+7] + top; /* Init nFree to non-freeblock free space */
56324 nFree = nFree + size;
56328 /* At this point, nFree contains the sum of the offset to the start
56335 if( nFree>usableSize ){
56338 pPage->nFree = (u16)(nFree - iCellFirst);
56367 pPage->nFree = (u16)(pBt->usableSize - first);
58042 ** nOrig pages in size containing nFree free pages. Return the expected
58045 static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree){
58051 nPtrmap = (nFree-nOrig+PTRMAP_PAGENO(pBt, nOrig)+nEntry)/nEntry;
58052 nFin = nOrig - nFree - nPtrmap;
58081 Pgno nFree = get4byte(&pBt->pPage1->aData[36]);
58082 Pgno nFin = finalDbSize(pBt, nOrig, nFree);
58086 }else if( nFree>0 ){
58123 Pgno nFree; /* Number of pages on the freelist initially */
58136 nFree = get4byte(&pBt->pPage1->aData[36]);
58137 nFin = finalDbSize(pBt, nOrig, nFree);
58145 if( (rc==SQLITE_DONE || rc==SQLITE_OK) && nFree>0 ){
60310 int nFree; /* Initial number of pages on free-list */
60327 nFree = get4byte(&pPage1->aData[36]);
60328 put4byte(&pPage1->aData[36], nFree+1);
60357 if( nFree!=0 ){
60746 pPage->nFree = pPage->pBt->usableSize - pPage->hdrOffset
60751 pPage->nFree += 2;
60795 if( pPage->nOverflow || sz+2>pPage->nFree ){
60831 pPage->nFree -= (u16)(2 + sz);
60910 ** The MemPage.nFree field is invalidated by this function. It is the
60946 /* The pPg->nFree field is now set incorrectly. The caller will fix it. */
61082 ** The pPg->nFree field is invalid when this function returns. It is the
61250 pNew->nFree = pBt->usableSize - pNew->cellOffset - 2 - szCell;
61373 assert( pFrom->nFree>=iToHdr );
61737 szNew[i] = usableSpace - p->nFree;
62108 apNew[iPg]->nFree = usableSpace-szNew[iPg];
62120 if( isRoot && pParent->nCell==0 && pParent->hdrOffset<=apNew[0]->nFree ){
62139 assert( apNew[0]->nFree ==
62302 }else if( pPage->nOverflow==0 && pPage->nFree<=nMin ){
62629 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)