Lines Matching refs:pgsz

1158   int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
25045 int pgsz,
25050 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
41344 int pgsz = osGetpagesize(); /* System page size */
41345 assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */
41346 if( pgsz<shmsz ) return 1;
41347 return pgsz/shmsz;
41690 static const int pgsz = 4096;
41694 assert( (nByte % pgsz)==0 );
41695 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
41697 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){
68182 ** then pgno is returned. So (pgno==PTRMAP_PAGENO(pgsz, pgno)) can be
100097 int pgsz; /* Main database page size */
100427 int pgsz = pTask->pSorter->pgsz;
100428 int iBuf = pReadr->iReadOff % pgsz;
100430 pReadr->aBuffer = (u8*)sqlite3Malloc(pgsz);
100432 pReadr->nBuffer = pgsz;
100435 int nRead = pgsz - iBuf;
100709 int pgsz; /* Page size of main database */
100758 pSorter->pgsz = pgsz = sqlite3BtreeGetPageSize(pBt);
100772 pSorter->mnPmaSize = szPma * pgsz;
100780 mxCache = mxCache * pgsz;
100789 pSorter->nMemory = pgsz;
100790 pSorter->list.aMemory = (u8*)sqlite3Malloc(pgsz);
101361 vdbePmaWriterInit(pTask->file.pFd, &writer, pTask->pSorter->pgsz,
101667 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
191458 int pgsz = p->nPgsz;
191461 assert( pgsz>0 );
191473 if( (nBlob+35)>pgsz ){
191474 nOvfl += (nBlob + 34)/pgsz;
209216 int pgsz;
211863 p->aBuf = rbuMalloc(p, p->pgsz);
211877 if( nSectorSize>p->pgsz ){
211878 p->nPagePerSector = nSectorSize / p->pgsz;
211906 pRbu->pgsz = iAmt;
211930 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
211945 iOff = (i64)(pFrame->iWalFrame-1) * (p->pgsz + 24) + 32 + 24;
211946 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
211949 iOff = (i64)(pFrame->iDbPage-1) * p->pgsz;
211950 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
214724 int pgsz = sqlite3BtreeGetPageSize(pBt);
214729 pPg->aPg = (u8*)sqlite3_malloc(pgsz + DBSTAT_PAGE_PADDING_BYTES);
214733 memset(&pPg->aPg[pgsz], 0, DBSTAT_PAGE_PADDING_BYTES);
214739 memcpy(pPg->aPg, a, pgsz);
222132 int pgsz; /* Approximate page size used in %_data */
226235 if( 0==sqlite3_stricmp(zKey, "pgsz") ){
226236 int pgsz = 0;
226238 pgsz = sqlite3_value_int(pVal);
226240 if( pgsz<32 || pgsz>FTS5_MAX_PAGE_SIZE ){
226243 pConfig->pgsz = pgsz;
226329 pConfig->pgsz = FTS5_DEFAULT_PAGE_SIZE;
231054 if( p->rc==SQLITE_OK && (pConfig->pgsz==0 || pConfig->iCookie!=iCookie) ){
233895 if( pDlidx->buf.n>=p->pConfig->pgsz ){
234004 if( (pPage->buf.n + pPgidx->n + nTerm + 2)>=p->pConfig->pgsz ){
234078 if( (pPage->buf.n + pPage->pgidx.n)>=p->pConfig->pgsz ){
234115 assert( p->pConfig->pgsz>0 );
234117 && (pPage->buf.n + pPage->pgidx.n + n)>=p->pConfig->pgsz
234119 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
234172 const int nBuffer = p->pConfig->pgsz + FTS5_DATA_PADDING;
234185 /* Grow the two buffers to pgsz + padding bytes in size. */
234591 const int pgsz = p->pConfig->pgsz;
234605 assert( p->rc || pBuf->nSpace>=(pgsz + FTS5_DATA_PADDING) );
234606 assert( p->rc || pPgidx->nSpace>=(pgsz + FTS5_DATA_PADDING) );
234624 if( pgsz>=(pBuf->n + pPgidx->n + nDoclist + 1) ){
234659 if( (pBuf->n + pPgidx->n)>=pgsz ){
234667 if( (pBuf->n + pPgidx->n + nCopy) <= pgsz ){
234678 int nSpace = pgsz - pBuf->n - pPgidx->n;
234688 if( (pBuf->n + pPgidx->n)>=pgsz ){