Lines Matching refs:iOff
15893 SQLITE_PRIVATE int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){
15895 return id->pMethods->xFetch(id, iOff, iAmt, pp);
15897 SQLITE_PRIVATE int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){
15898 return id->pMethods->xUnfetch(id, iOff, p);
15902 SQLITE_PRIVATE int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){
15906 SQLITE_PRIVATE int sqlite3OsUnfetch(sqlite3_file *id, i64 iOff, void *p){
27486 ** absolute offset iOff, then attempt to write nBuf bytes of data from
27493 i64 iOff, /* File offset to begin writing at */
27506 do{ rc = osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR );
27508 do{ rc = osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR);
27511 i64 iSeek = lseek(fd, iOff, SEEK_SET);
27514 if( iSeek!=iOff ){
27523 OSTRACE(("WRITE %-3d %5d %7lld %llu\n", fd, rc, iOff, TIMER_ELAPSED));
29095 ** iOff. The mapping must be valid for at least nAmt bytes.
29105 static int unixFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){
29117 if( pFd->mmapSize >= iOff+nAmt ){
29118 *pp = &((u8 *)pFd->pMapRegion)[iOff];
29136 static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){
29139 UNUSED_PARAMETER(iOff);
29146 /* If p!=0, it must match the iOff value. */
29147 assert( p==0 || p==&((u8 *)pFd->pMapRegion)[iOff] );
29159 UNUSED_PARAMETER(iOff);
36043 ** iOff. The mapping must be valid for at least nAmt bytes.
36053 static int winFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){
36060 osGetCurrentProcessId(), fd, iOff, nAmt, pp));
36072 if( pFd->mmapSize >= iOff+nAmt ){
36073 *pp = &((u8 *)pFd->pMapRegion)[iOff];
36094 static int winUnfetch(sqlite3_file *fd, i64 iOff, void *p){
36103 /* If p!=0, it must match the iOff value. */
36104 assert( p==0 || p==&((u8 *)pFd->pMapRegion)[iOff] );
36107 osGetCurrentProcessId(), pFd, iOff, p));
45948 i64 iOff = pPager->journalOff;
45968 rc = write32bits(pPager->jfd, iOff, pPg->pgno);
45970 rc = sqlite3OsWrite(pPager->jfd, pData2, pPager->pageSize, iOff+4);
45972 rc = write32bits(pPager->jfd, iOff+pPager->pageSize+4, cksum);
57769 int iOff;
57771 iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData);
57772 if( (iOff+szNew[i])>(int)pBt->usableSize ){
57777 memcpy(&aOvflSpace[iOff], apDiv[i], szNew[i]);
60299 i64 iOff;
60335 ** page. For each iteration, variable iOff is set to the byte offset
60338 for(iOff=iEnd-(i64)nSrcPgsz; rc==SQLITE_OK && iOff<iEnd; iOff+=nDestPgsz){
60340 Pgno iDest = (Pgno)(iOff/nDestPgsz)+1;
60345 const u8 *zIn = &zSrcData[iOff%nSrcPgsz];
60347 u8 *zOut = &zDestData[iOff%nDestPgsz];
60358 if( iOff==0 && bUpdate==0 ){
60546 i64 iOff;
60580 iOff=PENDING_BYTE+pgszSrc;
60581 rc==SQLITE_OK && iOff<iEnd;
60582 iOff+=pgszSrc
60585 const Pgno iSrcPg = (Pgno)((iOff/pgszSrc)+1);
60589 rc = sqlite3OsWrite(pFile, zData, pgszSrc, iOff);
76436 sqlite3_int64 iOff = 0;
76438 ALWAYS(pChunk) && (iOff+JOURNAL_CHUNKSIZE)<=iOfst;
76441 iOff += JOURNAL_CHUNKSIZE;
140353 int iOff; /* Current offset within aNode[] */
140402 if( p->iOff>=p->nNode ){
140407 p->iOff += fts3GetVarint32(&p->aNode[p->iOff], &nPrefix);
140409 p->iOff += fts3GetVarint32(&p->aNode[p->iOff], &nSuffix);
140413 memcpy(&p->term.a[nPrefix], &p->aNode[p->iOff], nSuffix);
140415 p->iOff += nSuffix;
140417 p->iOff += fts3GetVarint32(&p->aNode[p->iOff], &p->nDoclist);
140418 p->aDoclist = &p->aNode[p->iOff];
140419 p->iOff += p->nDoclist;
140424 assert( p->iOff<=p->nNode );
140451 p->iOff = 1 + sqlite3Fts3GetVarint(&p->aNode[1], &p->iChild);
140453 p->iOff = 1;
143660 int iOff; /* Offset of this term from read positions */
143692 pT->iOff = nTerm-iTerm-1;
143787 if( pT->pList && (pT->iPos-pT->iOff)<iMinPos ){
143788 iMinPos = pT->iPos-pT->iOff;
143977 int iOff; /* Current offset within aInput[] */
144206 const unsigned char *z = &pCsr->aInput[pCsr->iOff];
144249 pCsr->iOff = (int)(z - pCsr->aInput);