Lines Matching defs:nRem
47921 int nRem = amt; /* Number of bytes yet to be written */
47931 while( nRem>0 ){
47933 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, 0) ){
47935 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, &overlapped) ){
47940 assert( nWrite==0 || nWrite<=(DWORD)nRem );
47941 if( nWrite==0 || nWrite>(DWORD)nRem ){
47951 nRem -= nWrite;
47953 if( nRem>0 ){
77948 u32 nRem; /* Bytes of data still to copy */
77962 nRem = pSrc->info.nPayload;
77963 if( nIn==nRem && nIn<pDest->pPage->maxLocal ){
77981 if( nRem>nIn ){
77989 nRem -= nOut;
78013 if( rc==SQLITE_OK && nRem>0 && ALWAYS(pPgnoOut) ){
78027 nOut = MIN(pBt->usableSize - 4, nRem);
78030 }while( nRem>0 && rc==SQLITE_OK );
100311 int nRem; /* Bytes remaining to copy */
100328 nRem = nByte - nAvail;
100332 while( nRem>0 ){
100337 nCopy = nRem;
100338 if( nRem>p->nBuffer ) nCopy = p->nBuffer;
100342 memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy);
100343 nRem -= nCopy;
101252 int nRem = nData;
101253 while( nRem>0 && p->eFWErr==0 ){
101254 int nCopy = nRem;
101259 memcpy(&p->aBuffer[p->iBufEnd], &pData[nData-nRem], nCopy);
101271 nRem -= nCopy;
194645 int nRem = 0;
194674 nRem++;
194678 if( rc==SQLITE_OK && nRem!=pCsr->nSegment ){
194682 *pnRem = nRem;
194802 int nRem = nMerge; /* Number of leaf pages yet to be written */
194819 while( rc==SQLITE_OK && nRem>0 ){
194931 if( pWriter->nWork>=nRem && rc==SQLITE_ROW ) rc = SQLITE_OK;
194937 nRem -= (1 + pWriter->nWork);
233130 int nRem = pSeg->nPos; /* Number of bytes still to come */
233133 int nChunk = MIN(nRem, pSeg->pLeaf->szLeaf - pSeg->iLeafOffset);
233146 nRem -= nChunk;
233148 if( nRem<=0 ){
233158 nChunk = MIN(nRem, pData->szLeaf - 4);
234302 int nRem = pnRem ? *pnRem : 0; /* Output leaf pages left to write */
234366 if( pnRem && writer.nLeafWritten>nRem ){
234448 int nRem = nPg;
234451 while( nRem>0 && p->rc==SQLITE_OK ){
234484 fts5IndexMergeLevel(p, &pStruct, iBestLvl, &nRem);
234510 int nRem; /* Number of leaf pages left to write */
234516 nRem = (int)(p->nWorkUnit * nWork * pStruct->nLevel);
234518 fts5IndexMerge(p, ppStruct, nRem, p->pConfig->nAutomerge);
234822 int nRem = FTS5_OPT_WORK_UNIT;
234823 fts5IndexMergeLevel(p, &pNew, iLvl, &nRem);