Lines Matching refs:pgsz
1147 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
24192 int pgsz,
24197 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
38787 int pgsz = osGetpagesize(); /* System page size */
38788 assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */
38789 if( pgsz<shmsz ) return 1;
38790 return pgsz/shmsz;
39133 static const int pgsz = 4096;
39137 assert( (nByte % pgsz)==0 );
39138 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
39140 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){
96426 int pgsz; /* Main database page size */
96756 int pgsz = pTask->pSorter->pgsz;
96757 int iBuf = pReadr->iReadOff % pgsz;
96759 pReadr->aBuffer = (u8*)sqlite3Malloc(pgsz);
96761 pReadr->nBuffer = pgsz;
96764 int nRead = pgsz - iBuf;
97038 int pgsz; /* Page size of main database */
97086 pSorter->pgsz = pgsz = sqlite3BtreeGetPageSize(pBt);
97100 pSorter->mnPmaSize = szPma * pgsz;
97108 mxCache = mxCache * pgsz;
97117 pSorter->nMemory = pgsz;
97118 pSorter->list.aMemory = (u8*)sqlite3Malloc(pgsz);
97689 vdbePmaWriterInit(pTask->file.pFd, &writer, pTask->pSorter->pgsz,
97995 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
185115 int pgsz = p->nPgsz;
185118 assert( pgsz>0 );
185130 if( (nBlob+35)>pgsz ){
185131 nOvfl += (nBlob + 34)/pgsz;
202862 int pgsz;
205509 p->aBuf = rbuMalloc(p, p->pgsz);
205523 if( nSectorSize>p->pgsz ){
205524 p->nPagePerSector = nSectorSize / p->pgsz;
205552 pRbu->pgsz = iAmt;
205576 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
205591 iOff = (i64)(pFrame->iWalFrame-1) * (p->pgsz + 24) + 32 + 24;
205592 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
205595 iOff = (i64)(pFrame->iDbPage-1) * p->pgsz;
205596 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
208346 int pgsz = sqlite3BtreeGetPageSize(pBt);
208351 pPg->aPg = (u8*)sqlite3_malloc(pgsz + DBSTAT_PAGE_PADDING_BYTES);
208355 memset(&pPg->aPg[pgsz], 0, DBSTAT_PAGE_PADDING_BYTES);
208361 memcpy(pPg->aPg, a, pgsz);
215725 int pgsz; /* Approximate page size used in %_data */
219829 int pgsz = 0;
219831 pgsz = sqlite3_value_int(pVal);
219833 if( pgsz<32 || pgsz>FTS5_MAX_PAGE_SIZE ){
219836 pConfig->pgsz = pgsz;
219922 pConfig->pgsz = FTS5_DEFAULT_PAGE_SIZE;
224644 if( p->rc==SQLITE_OK && (pConfig->pgsz==0 || pConfig->iCookie!=iCookie) ){
227485 if( pDlidx->buf.n>=p->pConfig->pgsz ){
227594 if( (pPage->buf.n + pPgidx->n + nTerm + 2)>=p->pConfig->pgsz ){
227668 if( (pPage->buf.n + pPage->pgidx.n)>=p->pConfig->pgsz ){
227703 assert( p->pConfig->pgsz>0 );
227705 && (pPage->buf.n + pPage->pgidx.n + n)>=p->pConfig->pgsz
227707 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
227760 const int nBuffer = p->pConfig->pgsz + FTS5_DATA_PADDING;
228179 const int pgsz = p->pConfig->pgsz;
228193 assert( p->rc || pBuf->nSpace>=(pgsz + FTS5_DATA_PADDING) );
228194 assert( p->rc || pPgidx->nSpace>=(pgsz + FTS5_DATA_PADDING) );
228212 if( pgsz>=(pBuf->n + pPgidx->n + nDoclist + 1) ){
228247 if( (pBuf->n + pPgidx->n)>=pgsz ){
228255 if( (pBuf->n + pPgidx->n + nCopy) <= pgsz ){
228266 int nSpace = pgsz - pBuf->n - pPgidx->n;
228276 if( (pBuf->n + pPgidx->n)>=pgsz ){