Lines Matching defs:pgsz

1165   int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
26219 int pgsz,
26224 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
42882 int pgsz = osGetpagesize(); /* System page size */
42883 assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */
42884 if( pgsz<shmsz ) return 1;
42885 return pgsz/shmsz;
43258 static const int pgsz = 4096;
43262 assert( (nByte % pgsz)==0 );
43263 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
43265 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){
70128 ** then pgno is returned. So (pgno==PTRMAP_PAGENO(pgsz, pgno)) can be
103122 int pgsz; /* Main database page size */
103452 int pgsz = pTask->pSorter->pgsz;
103453 int iBuf = pReadr->iReadOff % pgsz;
103455 pReadr->aBuffer = (u8*)sqlite3Malloc(pgsz);
103457 pReadr->nBuffer = pgsz;
103460 int nRead = pgsz - iBuf;
103734 int pgsz; /* Page size of main database */
103783 pSorter->pgsz = pgsz = sqlite3BtreeGetPageSize(pBt);
103797 pSorter->mnPmaSize = szPma * pgsz;
103805 mxCache = mxCache * pgsz;
103814 pSorter->nMemory = pgsz;
103815 pSorter->list.aMemory = (u8*)sqlite3Malloc(pgsz);
104386 vdbePmaWriterInit(pTask->file.pFd, &writer, pTask->pSorter->pgsz,
104692 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
198042 int pgsz = p->nPgsz;
198045 assert( pgsz>0 );
198057 if( (nBlob+35)>pgsz ){
198058 nOvfl += (nBlob + 34)/pgsz;
218526 int pgsz;
221174 p->aBuf = rbuMalloc(p, p->pgsz);
221188 if( nSectorSize>p->pgsz ){
221189 p->nPagePerSector = nSectorSize / p->pgsz;
221217 pRbu->pgsz = iAmt;
221241 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
221256 iOff = (i64)(pFrame->iWalFrame-1) * (p->pgsz + 24) + 32 + 24;
221257 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
221260 iOff = (i64)(pFrame->iDbPage-1) * p->pgsz;
221261 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
224081 int pgsz = sqlite3BtreeGetPageSize(pBt);
224086 pPg->aPg = (u8*)sqlite3_malloc(pgsz + DBSTAT_PAGE_PADDING_BYTES);
224090 memset(&pPg->aPg[pgsz], 0, DBSTAT_PAGE_PADDING_BYTES);
224096 memcpy(pPg->aPg, a, pgsz);
232256 int pgsz; /* Approximate page size used in %_data */
236503 if( 0==sqlite3_stricmp(zKey, "pgsz") ){
236504 int pgsz = 0;
236506 pgsz = sqlite3_value_int(pVal);
236508 if( pgsz<32 || pgsz>FTS5_MAX_PAGE_SIZE ){
236511 pConfig->pgsz = pgsz;
236621 pConfig->pgsz = FTS5_DEFAULT_PAGE_SIZE;
241762 if( p->rc==SQLITE_OK && (pConfig->pgsz==0 || pConfig->iCookie!=iCookie) ){
244831 if( pDlidx->buf.n>=p->pConfig->pgsz ){
244940 if( (pPage->buf.n + pPgidx->n + nTerm + 2)>=p->pConfig->pgsz ){
245014 if( (pPage->buf.n + pPage->pgidx.n)>=p->pConfig->pgsz ){
245051 assert( p->pConfig->pgsz>0 || p->rc!=SQLITE_OK );
245053 && (pPage->buf.n + pPage->pgidx.n + n)>=p->pConfig->pgsz
245055 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
245108 const int nBuffer = p->pConfig->pgsz + FTS5_DATA_PADDING;
245121 /* Grow the two buffers to pgsz + padding bytes in size. */
246034 const int pgsz = p->pConfig->pgsz;
246049 assert( p->rc || pBuf->nSpace>=(pgsz + FTS5_DATA_PADDING) );
246050 assert( p->rc || pPgidx->nSpace>=(pgsz + FTS5_DATA_PADDING) );
246071 if( !bSecureDelete && pgsz>=(pBuf->n + pPgidx->n + nDoclist + 1) ){
246140 if( (pBuf->n + pPgidx->n)>=pgsz ){
246154 if( (pBuf->n + pPgidx->n + nCopy) <= pgsz ){
246165 int nSpace = pgsz - pBuf->n - pPgidx->n;
246175 if( (pBuf->n + pPgidx->n)>=pgsz ){
248052 int nSlotPerPage = MAX(MINSLOT, (p->pConfig->pgsz - 8) / szKey);
251271 if( pConfig->pgsz==0 ){
252333 pTab->p.pConfig->pgsz = 0;