Lines Matching refs:nRem
49499 int nRem = amt; /* Number of bytes yet to be written */
49509 while( nRem>0 ){
49511 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, 0) ){
49513 if( !osWriteFile(pFile->h, aRem, nRem, &nWrite, &overlapped) ){
49518 assert( nWrite==0 || nWrite<=(DWORD)nRem );
49519 if( nWrite==0 || nWrite>(DWORD)nRem ){
49529 nRem -= nWrite;
49531 if( nRem>0 ){
80160 u32 nRem; /* Bytes of data still to copy */
80174 nRem = pSrc->info.nPayload;
80175 if( nIn==nRem && nIn<pDest->pPage->maxLocal ){
80195 if( nRem>nIn ){
80203 nRem -= nOut;
80227 if( rc==SQLITE_OK && nRem>0 && ALWAYS(pPgnoOut) ){
80241 nOut = MIN(pBt->usableSize - 4, nRem);
80244 }while( nRem>0 && rc==SQLITE_OK );
103336 int nRem; /* Bytes remaining to copy */
103353 nRem = nByte - nAvail;
103357 while( nRem>0 ){
103362 nCopy = nRem;
103363 if( nRem>p->nBuffer ) nCopy = p->nBuffer;
103367 memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy);
103368 nRem -= nCopy;
104277 int nRem = nData;
104278 while( nRem>0 && p->eFWErr==0 ){
104279 int nCopy = nRem;
104284 memcpy(&p->aBuffer[p->iBufEnd], &pData[nData-nRem], nCopy);
104296 nRem -= nCopy;
201241 int nRem = 0;
201270 nRem++;
201274 if( rc==SQLITE_OK && nRem!=pCsr->nSegment ){
201278 *pnRem = nRem;
201398 int nRem = nMerge; /* Number of leaf pages yet to be written */
201415 while( rc==SQLITE_OK && nRem>0 ){
201527 if( pWriter->nWork>=nRem && rc==SQLITE_ROW ) rc = SQLITE_OK;
201533 nRem -= (1 + pWriter->nWork);
244055 int nRem = pSeg->nPos; /* Number of bytes still to come */
244058 int nChunk = MIN(nRem, pSeg->pLeaf->szLeaf - pSeg->iLeafOffset);
244071 nRem -= nChunk;
244073 if( nRem<=0 ){
244083 nChunk = MIN(nRem, pData->szLeaf - 4);
245238 int nRem = pnRem ? *pnRem : 0; /* Output leaf pages left to write */
245308 if( pnRem && writer.nLeafWritten>nRem ){
245430 int nRem = nPg;
245433 while( nRem>0 && p->rc==SQLITE_OK ){
245461 fts5IndexMergeLevel(p, &pStruct, iBestLvl, &nRem);
245489 int nRem; /* Number of leaf pages left to write */
245495 nRem = (int)(p->nWorkUnit * nWork * pStruct->nLevel);
245497 fts5IndexMerge(p, ppStruct, nRem, p->pConfig->nAutomerge);
246337 int nRem = FTS5_OPT_WORK_UNIT;
246338 fts5IndexMergeLevel(p, &pNew, iLvl, &nRem);