Lines Matching refs:SQLITE_USABLE_SIZE

213 #define MX_CELL ((SQLITE_USABLE_SIZE-sizeof(PageHdr))/MIN_CELL_SIZE)
219 #define USABLE_SPACE (SQLITE_USABLE_SIZE - sizeof(PageHdr))
264 #define OVERFLOW_SIZE (SQLITE_USABLE_SIZE-sizeof(Pgno))
424 char newPage[SQLITE_USABLE_SIZE]; in defragmentPage()
437 assert( Addr(pCell) < Addr(pPage) + SQLITE_USABLE_SIZE ); in defragmentPage()
445 assert( pPage->nFree==SQLITE_USABLE_SIZE-pc ); in defragmentPage()
451 pFBlk->iSize = SWAB16(pBt, SQLITE_USABLE_SIZE - pc); in defragmentPage()
454 memset(&pFBlk[1], 0, SQLITE_USABLE_SIZE - pc - sizeof(FreeBlk)); in defragmentPage()
486 assert( cnt++ < SQLITE_USABLE_SIZE/4 ); in allocateSpace()
601 if( idx>SQLITE_USABLE_SIZE-MIN_CELL_SIZE ) goto page_format_error; in initPage()
606 if( idx+sz > SQLITE_USABLE_SIZE ) goto page_format_error; in initPage()
615 if( idx>SQLITE_USABLE_SIZE-sizeof(FreeBlk) ) goto page_format_error; in initPage()
643 memset(pPage, 0, SQLITE_USABLE_SIZE); in zeroPage()
649 pPage->nFree = SQLITE_USABLE_SIZE - sizeof(*pHdr); in zeroPage()
700 assert( sizeof(OverflowPage)==SQLITE_USABLE_SIZE ); in sqliteBtreeOpen()
2090 assert( idx>0 && idx<SQLITE_USABLE_SIZE ); in relinkCellList()
2106 memcpy(pTo->u.aDisk, pFrom->u.aDisk, SQLITE_USABLE_SIZE); in copyPage()
2116 if( x>from && x<from+SQLITE_USABLE_SIZE ){ in copyPage()
2211 if( !pPage->isOverfull && pPage->nFree<SQLITE_USABLE_SIZE/2 in balance()
2237 memcpy(pPage, pChild, SQLITE_USABLE_SIZE); in balance()
2916 memcpy(pNew, pOvfl, SQLITE_USABLE_SIZE);
2959 memcpy(pPage, pPageFrom, SQLITE_USABLE_SIZE);
3049 while( idx>0 && idx<=SQLITE_USABLE_SIZE-MIN_CELL_SIZE ){ in fileBtreePageDump()
3079 while( idx>0 && idx<SQLITE_USABLE_SIZE ){ in fileBtreePageDump()
3093 while( idx>0 && idx<SQLITE_USABLE_SIZE-MIN_CELL_SIZE ){ in fileBtreePageDump()
3138 while( idx>0 && idx<SQLITE_USABLE_SIZE ){ in fileBtreeCursorDump()
3300 char hit[SQLITE_USABLE_SIZE]; in checkTreePage()
3376 for(i=SWAB16(pBt, pPage->u.hdr.firstCell); i>0 && i<SQLITE_USABLE_SIZE; ){ in checkTreePage()
3382 for(i=SWAB16(pBt,pPage->u.hdr.firstFree); i>0 && i<SQLITE_USABLE_SIZE; ){ in checkTreePage()
3388 for(i=0; i<SQLITE_USABLE_SIZE; i++){ in checkTreePage()
3403 if( pParent && pParent->nCell>2 && pPage->nFree>3*SQLITE_USABLE_SIZE/4 ){ in checkTreePage()
3405 SQLITE_USABLE_SIZE/3); in checkTreePage()
3507 memcpy(pBtTo->page1, pBtFrom->page1, SQLITE_USABLE_SIZE); in fileBtreeCopyFile()