Lines Matching refs:nReq
42324 SQLITE_PRIVATE int sqlite3PcacheReleaseMemory(int nReq){
42331 while( (nReq<0 || nFree<nReq)
52095 i64 nReq = ((i64)mxPage * szPage);
52097 if( rc==SQLITE_OK && nSize<nReq ){
52098 sqlite3OsFileControlHint(pWal->pDbFd, SQLITE_FCNTL_SIZE_HINT, &nReq);
81856 int nReq; /* Bytes of memory required */
81887 nReq = pVal->n + sizeof(SorterRecord);
81891 bFlush = pSorter->iMemory && (pSorter->iMemory+nReq) > pSorter->mxPmaSize;
81912 int nMin = pSorter->iMemory + nReq;
81931 pSorter->iMemory += ROUND8(nReq);
81934 pNew = (SorterRecord *)sqlite3Malloc(nReq);
147926 int nReq = nData; /* Required space after adding zTerm */
147933 nReq += sqlite3Fts3VarintLen(nPrefix)+sqlite3Fts3VarintLen(nSuffix)+nSuffix;
147934 if( nReq<=p->nNodeSize || !pTree->zTerm ){
147936 if( nReq>p->nNodeSize ){
147945 pTree->aData = (char *)sqlite3_malloc(nReq);
148127 int nReq; /* Number of bytes required on leaf page */
148162 nReq = sqlite3Fts3VarintLen(nPrefix) + /* varint containing prefix size */
148168 if( nData>0 && nData+nReq>p->nNodeSize ){
148197 nReq = 1 + /* varint containing prefix size */
148205 pWriter->nLeafData += nReq;
148210 if( nReq>pWriter->nSize ){
148211 char *aNew = sqlite3_realloc(pWriter->aData, nReq);
148214 pWriter->nSize = nReq;
148216 assert( nData+nReq<=pWriter->nSize );
175789 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
175791 while( nCopy<nReq ){
176646 int nReq = sqlite3Fts5GetVarintLen((u32)(nActual*2));
176647 while( iSv2<(iData-nReq) ){ pBuf->p[iSv2++] = 0x80; }