Home
last modified time | relevance | path

Searched refs:nCopy (Results 1 – 20 of 20) sorted by relevance

/sqlite-3.40.0/src/
H A Dtest_demovfs.c269 int nCopy; /* Number of bytes to copy into buffer */ in demoWrite() local
285 nCopy = SQLITE_DEMOVFS_BUFFERSZ - p->nBuffer; in demoWrite()
286 if( nCopy>n ){ in demoWrite()
287 nCopy = n; in demoWrite()
289 memcpy(&p->aBuffer[p->nBuffer], z, nCopy); in demoWrite()
290 p->nBuffer += nCopy; in demoWrite()
292 n -= nCopy; in demoWrite()
293 i += nCopy; in demoWrite()
294 z += nCopy; in demoWrite()
H A Dvdbesort.c558 int nCopy; /* Number of bytes to copy */ in vdbePmaReadBlob() local
561 nCopy = nRem; in vdbePmaReadBlob()
562 if( nRem>p->nBuffer ) nCopy = p->nBuffer; in vdbePmaReadBlob()
563 rc = vdbePmaReadBlob(p, nCopy, &aNext); in vdbePmaReadBlob()
566 memcpy(&p->aAlloc[nByte - nRem], aNext, nCopy); in vdbePmaReadBlob()
567 nRem -= nCopy; in vdbePmaReadBlob()
1478 int nCopy = nRem; in vdbePmaWriteBlob() local
1479 if( nCopy>(p->nBuffer - p->iBufEnd) ){ in vdbePmaWriteBlob()
1480 nCopy = p->nBuffer - p->iBufEnd; in vdbePmaWriteBlob()
1484 p->iBufEnd += nCopy; in vdbePmaWriteBlob()
[all …]
H A Dmemjournal.c118 int nCopy = MIN(nRead, (p->nChunkSize - iChunkOffset)); in memjrnlRead() local
119 memcpy(zOut, (u8*)pChunk->zChunk + iChunkOffset, nCopy); in memjrnlRead()
120 zOut += nCopy; in memjrnlRead()
H A Dtest6.c416 int nCopy = (int)MIN((i64)iAmt, (pCrash->iSize - iOfst)); in cfRead() local
418 if( nCopy>0 ){ in cfRead()
419 memcpy(zBuf, &pCrash->zData[iOfst], nCopy); in cfRead()
423 if( nCopy<iAmt ){ in cfRead()
H A Dbackup.c235 const int nCopy = MIN(nSrcPgsz, nDestPgsz); in backupOnePage() local
275 memcpy(zOut, zIn, nCopy); in backupOnePage()
H A Dos_win.c2751 int nCopy = (int)(pFile->mmapSize - offset); local
2752 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy);
2753 pBuf = &((u8 *)pBuf)[nCopy];
2754 amt -= nCopy;
2755 offset += nCopy;
2829 int nCopy = (int)(pFile->mmapSize - offset); local
2830 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy);
2831 pBuf = &((u8 *)pBuf)[nCopy];
2832 amt -= nCopy;
2833 offset += nCopy;
H A Dos_unix.c3365 int nCopy = pFile->mmapSize - offset; in unixRead() local
3366 memcpy(pBuf, &((u8 *)(pFile->pMapRegion))[offset], nCopy); in unixRead()
3367 pBuf = &((u8 *)pBuf)[nCopy]; in unixRead()
3368 amt -= nCopy; in unixRead()
3369 offset += nCopy; in unixRead()
3517 int nCopy = pFile->mmapSize - offset; in unixWrite() local
3518 memcpy(&((u8 *)(pFile->pMapRegion))[offset], pBuf, nCopy); in unixWrite()
3519 pBuf = &((u8 *)pBuf)[nCopy]; in unixWrite()
3520 amt -= nCopy; in unixWrite()
3521 offset += nCopy; in unixWrite()
H A Dbtree.c9353 int nCopy = MIN(nOut, nIn); in sqlite3BtreeTransferRow() local
9354 memcpy(aOut, aIn, nCopy); in sqlite3BtreeTransferRow()
9355 nOut -= nCopy; in sqlite3BtreeTransferRow()
9356 nIn -= nCopy; in sqlite3BtreeTransferRow()
9357 aOut += nCopy; in sqlite3BtreeTransferRow()
9358 aIn += nCopy; in sqlite3BtreeTransferRow()
H A Dbuild.c4518 int nCopy = MIN(ArraySize(aVal), pIdx->nKeyCol); in sqlite3DefaultRowEst() local
4544 memcpy(&a[1], aVal, nCopy*sizeof(LogEst)); in sqlite3DefaultRowEst()
4545 for(i=nCopy+1; i<=pIdx->nKeyCol; i++){ in sqlite3DefaultRowEst()
/sqlite-3.40.0/ext/recover/
H A Ddbdata.c342 int nCopy = sqlite3_column_bytes(pStmt, 0); in dbdataLoadPage() local
343 if( nCopy>0 ){ in dbdataLoadPage()
345 pPage = (u8*)sqlite3_malloc64(nCopy + DBDATA_PADDING_BYTES); in dbdataLoadPage()
350 memcpy(pPage, pCopy, nCopy); in dbdataLoadPage()
351 memset(&pPage[nCopy], 0, DBDATA_PADDING_BYTES); in dbdataLoadPage()
354 *pnPage = nCopy; in dbdataLoadPage()
628 int nCopy; in dbdataNext() local
634 nCopy = U-4; in dbdataNext()
635 if( nCopy>nRem ) nCopy = nRem; in dbdataNext()
636 memcpy(&pCsr->pRec[nPayload-nRem], &aOvfl[4], nCopy); in dbdataNext()
[all …]
/sqlite-3.40.0/test/
H A Dthreadtest3.c912 int nCopy = sizeof(aBuf); in filecopy_x() local
913 if( nCopy+iOff>nByte ){ in filecopy_x()
914 nCopy = nByte - iOff; in filecopy_x()
916 if( nCopy!=read(fd1, aBuf, nCopy) ){ in filecopy_x()
920 if( nCopy!=write(fd2, aBuf, nCopy) ){ in filecopy_x()
924 iOff += nCopy; in filecopy_x()
/sqlite-3.40.0/ext/expert/
H A Dsqlite3expert.c745 int nCopy; in idxGetTableInfo() local
747 nCopy = STRLEN(zCol) + 1; in idxGetTableInfo()
750 memcpy(pCsr, zCol, nCopy); in idxGetTableInfo()
751 pCsr += nCopy; in idxGetTableInfo()
758 nCopy = STRLEN(zColSeq) + 1; in idxGetTableInfo()
760 memcpy(pCsr, zColSeq, nCopy); in idxGetTableInfo()
761 pCsr += nCopy; in idxGetTableInfo()
/sqlite-3.40.0/ext/async/
H A Dsqlite3async.c707 sqlite3_int64 nCopy; in asyncRead() local
722 nCopy = MIN(nByte64-iBeginIn, iAmt64-iBeginOut); in asyncRead()
723 if( nCopy>0 ){ in asyncRead()
724 memcpy(&((char *)zOut)[iBeginOut], &pWrite->zBuf[iBeginIn], (size_t)nCopy); in asyncRead()
725 ASYNC_TRACE(("OVERREAD %d bytes at %d\n", nCopy, iBeginOut+iOffset)); in asyncRead()
/sqlite-3.40.0/ext/misc/
H A Dfileio.c333 int nCopy = (int)strlen(zCopy); in makeDirectory() local
340 for(; zCopy[i]!='/' && i<nCopy; i++); in makeDirectory()
341 if( i==nCopy ) break; in makeDirectory()
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_log.c882 int nCopy = LSM_MIN(nAvail, nReq); in logReaderBlob() local
886 rc = lsmStringBinAppend(pBuf, (u8 *)&p->buf.z[p->iBuf], nCopy); in logReaderBlob()
887 nReq -= nCopy; in logReaderBlob()
888 p->iBuf += nCopy; in logReaderBlob()
H A Dlsm_sorted.c445 int nCopy = LSM_MIN(nRem, iEnd-i); in sortedReadData() local
446 if( nCopy>0 ){ in sortedReadData()
447 memcpy(&aDest[nByte-nRem], &aData[i], nCopy); in sortedReadData()
448 nRem -= nCopy; in sortedReadData()
449 i += nCopy; in sortedReadData()
3884 int nCopy; /* Number of bytes to copy */ in mergeWorkerData() local
3895 nCopy = LSM_MIN(nRem, SEGMENT_EOF(nData, nRec) - iOff); in mergeWorkerData()
3897 memcpy(&aData[iOff], &aWrite[nWrite-nRem], nCopy); in mergeWorkerData()
3898 nRem -= nCopy; in mergeWorkerData()
3903 pMerge->iOutputOff = iOff + nCopy; in mergeWorkerData()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_index.c4115 int nCopy = 0; in fts5WriteAppendPoslistData() local
4116 while( nCopy<nReq ){ in fts5WriteAppendPoslistData()
4118 nCopy += fts5GetVarint(&a[nCopy], (u64*)&dummy); in fts5WriteAppendPoslistData()
4120 fts5BufferAppendBlob(&p->rc, &pPage->buf, nCopy, a); in fts5WriteAppendPoslistData()
4121 a += nCopy; in fts5WriteAppendPoslistData()
4122 n -= nCopy; in fts5WriteAppendPoslistData()
4661 nCopy += nPos; in fts5FlushOneHash()
4675 if( (nCopy - iPos)<=nSpace ){ in fts5FlushOneHash()
4676 n = nCopy - iPos; in fts5FlushOneHash()
4686 if( iPos>=nCopy ) break; in fts5FlushOneHash()
[all …]
/sqlite-3.40.0/ext/session/
H A Dsqlite3session.c3171 int nCopy; in sessionChangesetReadTblhdr() local
3174 rc = sessionChangesetBufferTblhdr(&p->in, &nCopy); in sessionChangesetReadTblhdr()
3180 nCopy -= nVarint; in sessionChangesetReadTblhdr()
3182 nByte = p->nCol * sizeof(sqlite3_value*) * 2 + nCopy; in sessionChangesetReadTblhdr()
3193 memcpy(&p->tblhdr.aBuf[iPK], &p->in.aData[p->in.iNext], nCopy); in sessionChangesetReadTblhdr()
3194 p->in.iNext += nCopy; in sessionChangesetReadTblhdr()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c1337 int nCopy = pList->nData+1; in fts3SegReaderNext() local
1350 aCopy = (char*)sqlite3_malloc64(nCopy); in fts3SegReaderNext()
1352 memcpy(aCopy, pList->aData, nCopy); in fts3SegReaderNext()
1353 pReader->nNode = pReader->nDoclist = nCopy; in fts3SegReaderNext()
/sqlite-3.40.0/ext/rbu/
H A Dsqlite3rbu.c1117 size_t nCopy = strlen(zStr) + 1; in rbuStrndup() local
1118 zRet = (char*)sqlite3_malloc64(nCopy); in rbuStrndup()
1120 memcpy(zRet, zStr, nCopy); in rbuStrndup()