Lines Matching refs:pgsz
1190 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
27471 int pgsz,
27476 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
44963 int pgsz = osGetpagesize(); /* System page size */
44964 assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */
44965 if( pgsz<shmsz ) return 1;
44966 return pgsz/shmsz;
45339 static const int pgsz = 4096;
45343 assert( (nByte % pgsz)==0 );
45344 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
45346 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){
72704 ** then pgno is returned. So (pgno==PTRMAP_PAGENO(pgsz, pgno)) can be
106690 int pgsz; /* Main database page size */
107025 int pgsz = pTask->pSorter->pgsz;
107026 int iBuf = pReadr->iReadOff % pgsz;
107028 pReadr->aBuffer = (u8*)sqlite3Malloc(pgsz);
107030 pReadr->nBuffer = pgsz;
107033 int nRead = pgsz - iBuf;
107309 int pgsz; /* Page size of main database */
107366 pSorter->pgsz = pgsz = sqlite3BtreeGetPageSize(pBt);
107380 pSorter->mnPmaSize = szPma * pgsz;
107388 mxCache = mxCache * pgsz;
107397 pSorter->nMemory = pgsz;
107398 pSorter->list.aMemory = (u8*)sqlite3Malloc(pgsz);
107983 vdbePmaWriterInit(pTask->file.pFd, &writer, pTask->pSorter->pgsz,
108289 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
205573 int pgsz = p->nPgsz;
205576 assert( pgsz>0 );
205588 if( (nBlob+35)>pgsz ){
205589 nOvfl += (nBlob + 34)/pgsz;
226343 int pgsz;
228994 p->aBuf = rbuMalloc(p, p->pgsz);
229008 if( nSectorSize>p->pgsz ){
229009 p->nPagePerSector = nSectorSize / p->pgsz;
229037 pRbu->pgsz = iAmt;
229061 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
229076 iOff = (i64)(pFrame->iWalFrame-1) * (p->pgsz + 24) + 32 + 24;
229077 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
229080 iOff = (i64)(pFrame->iDbPage-1) * p->pgsz;
229081 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
231907 int pgsz = sqlite3BtreeGetPageSize(pBt);
231912 pPg->aPg = (u8*)sqlite3_malloc(pgsz + DBSTAT_PAGE_PADDING_BYTES);
231916 memset(&pPg->aPg[pgsz], 0, DBSTAT_PAGE_PADDING_BYTES);
231922 memcpy(pPg->aPg, a, pgsz);
241597 int pgsz; /* Approximate page size used in %_data */
246002 if( 0==sqlite3_stricmp(zKey, "pgsz") ){
246003 int pgsz = 0;
246005 pgsz = sqlite3_value_int(pVal);
246007 if( pgsz<32 || pgsz>FTS5_MAX_PAGE_SIZE ){
246010 pConfig->pgsz = pgsz;
246133 pConfig->pgsz = FTS5_DEFAULT_PAGE_SIZE;
251364 if( (pConfig->pgsz==0 || pConfig->iCookie!=iCookie) ){
254440 if( pDlidx->buf.n>=p->pConfig->pgsz ){
254549 if( (pPage->buf.n + pPgidx->n + nTerm + 2)>=p->pConfig->pgsz ){
254623 if( (pPage->buf.n + pPage->pgidx.n)>=p->pConfig->pgsz ){
254660 assert( p->pConfig->pgsz>0 || p->rc!=SQLITE_OK );
254662 && (pPage->buf.n + pPage->pgidx.n + n)>=p->pConfig->pgsz
254664 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
254717 const int nBuffer = p->pConfig->pgsz + FTS5_DATA_PADDING;
254730 /* Grow the two buffers to pgsz + padding bytes in size. */
255683 const int pgsz = p->pConfig->pgsz;
255698 assert( p->rc || pBuf->nSpace>=(pgsz + FTS5_DATA_PADDING) );
255699 assert( p->rc || pPgidx->nSpace>=(pgsz + FTS5_DATA_PADDING) );
255720 if( !bSecureDelete && pgsz>=(pBuf->n + pPgidx->n + nDoclist + 1) ){
255791 if( (pBuf->n + pPgidx->n)>=pgsz ){
255805 if( (pBuf->n + pPgidx->n + nCopy) <= pgsz ){
255816 int nSpace = pgsz - pBuf->n - pPgidx->n;
255826 if( (pBuf->n + pPgidx->n)>=pgsz ){
258059 int nSlotPerPage = MAX(MINSLOT, (p->pConfig->pgsz - 8) / szKey);
261585 if( pConfig->pgsz==0 ){
261782 pTab->p.pConfig->pgsz = 0;
262827 pTab->p.pConfig->pgsz = 0;