Lines Matching refs:iOffset
6534 SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);
6576 SQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);
15247 int iLimit, iOffset; /* Memory registers holding LIMIT & OFFSET counters */ member
22235 int iOffset; /* An offset into mem5.aCtrl[] */ in memsys5Init() local
22266 iOffset = 0; in memsys5Init()
22269 if( (iOffset+nAlloc)<=mem5.nBlock ){ in memsys5Init()
22270 mem5.aCtrl[iOffset] = ii | CTRL_FREE; in memsys5Init()
22271 memsys5Link(iOffset, ii); in memsys5Init()
22272 iOffset += nAlloc; in memsys5Init()
22274 assert((iOffset+nAlloc)>mem5.nBlock); in memsys5Init()
39646 static int winSeekFile(winFile *pFile, sqlite3_int64 iOffset){
39653 OSTRACE(("SEEK file=%p, offset=%lld\n", pFile->h, iOffset));
39655 upperBits = (LONG)((iOffset>>32) & 0x7fffffff);
39656 lowerBits = (LONG)(iOffset & 0xffffffff);
39686 x.QuadPart = iOffset;
41272 int iOffset = pShmNode->nRegion*szRegion;
41273 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
41276 iOffset - iOffsetShift, szRegion + iOffsetShift
41280 0, iOffset - iOffsetShift, szRegion + iOffsetShift
41284 osGetCurrentProcessId(), pShmNode->nRegion, iOffset,
41303 int iOffset = iRegion*szRegion;
41304 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
46724 i64 iOffset; /* Starting offset in main journal */
49209 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
49210 rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset);
49626 pPager->journalOff = pSavepoint->iOffset;
52875 aNew[ii].iOffset = pPager->journalOff;
52877 aNew[ii].iOffset = JOURNAL_HDR_SZ(pPager);
54799 i64 iOffset; /* Next offset to read from log file */
54859 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
54865 rc = sqlite3OsRead(pWal->pWalFd, aFrame, szFrame, iOffset);
55494 i64 iOffset;
55499 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
55501 rc = sqlite3OsRead(pWal->pWalFd, zBuf, szPage, iOffset);
55503 iOffset = (iDbpage-1)*(i64)szPage;
55504 testcase( IS_BIG_INT(iOffset) );
55505 rc = sqlite3OsWrite(pWal->pDbFd, zBuf, szPage, iOffset);
56276 i64 iOffset;
56281 iOffset = walFrameOffset(iRead, sz) + WAL_FRAME_HDRSIZE;
56283 return sqlite3OsRead(pWal->pWalFd, pOut, (nOut>sz ? sz : nOut), iOffset);
56528 sqlite3_int64 iOffset /* Start writing at this offset */
56531 if( iOffset<p->iSyncPoint && iOffset+iAmt>=p->iSyncPoint ){
56532 int iFirstAmt = (int)(p->iSyncPoint - iOffset);
56533 rc = sqlite3OsWrite(p->pFd, pContent, iFirstAmt, iOffset);
56535 iOffset += iFirstAmt;
56542 rc = sqlite3OsWrite(p->pFd, pContent, iAmt, iOffset);
56553 sqlite3_int64 iOffset /* Byte offset at which to write */
56564 rc = walWriteToLog(p, aFrame, sizeof(aFrame), iOffset);
56567 rc = walWriteToLog(p, pData, p->szPage, iOffset+sizeof(aFrame));
56642 i64 iOffset; /* Next byte to write in WAL file */
56724 iOffset = walFrameOffset(iFrame+1, szPage);
56758 assert( iOffset==walFrameOffset(iFrame, szPage) );
56760 rc = walWriteOneFrame(&w, p, nDbSize, iOffset);
56763 iOffset += szFrame;
56791 w.iSyncPoint = ((iOffset+sectorSize-1)/sectorSize)*sectorSize;
56792 bSync = (w.iSyncPoint==iOffset);
56794 while( iOffset<w.iSyncPoint ){
56795 rc = walWriteOneFrame(&w, pLast, nTruncate, iOffset);
56797 iOffset += szFrame;
84142 int iOffset; /* Byte offset of blob in cursor data */
84193 p->iOffset = pC->aType[p->iCol + pC->nField];
84488 int iOffset,
84501 if( n<0 || iOffset<0 || ((sqlite3_int64)iOffset+n)>p->nByte ){
84539 rc = xCall(p->pCsr, iOffset+p->iOffset, n, z);
84557 SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
84558 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreeData);
84564 SQLITE_API int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
84565 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
87440 sqlite3_int64 iOffset; /* Offset from the beginning of the file */
87480 if( (iAmt+iOfst)>p->endpoint.iOffset ){
87485 assert( (iAmt+iOfst)<=p->endpoint.iOffset );
87486 assert( p->readpoint.iOffset==0 || p->readpoint.pChunk!=0 );
87487 if( p->readpoint.iOffset!=iOfst || iOfst==0 ){
87509 p->readpoint.iOffset = pChunk ? iOfst+iAmt : 0;
87543 if( iOff + nChunk > copy.endpoint.iOffset ){
87544 nChunk = copy.endpoint.iOffset - iOff;
87597 assert( iOfst==p->endpoint.iOffset || iOfst==0 );
87609 int iChunkOffset = (int)(p->endpoint.iOffset%p->nChunkSize);
87632 p->endpoint.iOffset += iSpace;
87654 p->endpoint.iOffset = 0;
87656 p->readpoint.iOffset = 0;
87686 *pSize = (sqlite_int64) p->endpoint.iOffset;
90600 pNew->iOffset = 0;
110692 static const u8 iOffset[] = {0, 1, 2, 4, 9, 12, 15, 20};
110702 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0
113625 pNew->iOffset = 0;
114029 assert( pSelect->iOffset==0 || pSelect->iLimit!=0 );
114030 iLimit = pSelect->iOffset ? pSelect->iOffset+1 : pSelect->iLimit;
114123 int iOffset, /* Register holding the offset counter */
114126 if( iOffset>0 ){
114127 sqlite3VdbeAddOp3(v, OP_IfPos, iOffset, iContinue, 1); VdbeCoverage(v);
114218 codeOffset(v, p->iOffset, iContinue);
114319 codeOffset(v, p->iOffset, iContinue);
114761 codeOffset(v, p->iOffset, addrContinue);
114766 codeOffset(v, p->iOffset, addrContinue);
115353 int iOffset;
115385 p->iOffset = iOffset = ++pParse->nMem;
115387 sqlite3ExprCode(pParse, p->pOffset, iOffset);
115388 sqlite3VdbeAddOp1(v, OP_MustBeInt, iOffset); VdbeCoverage(v);
115390 sqlite3VdbeAddOp3(v, OP_OffsetLimit, iLimit, iOffset+1, iOffset);
115529 regOffset = p->iOffset;
115531 p->iLimit = p->iOffset = 0;
115790 pPrior->iOffset = p->iOffset;
115802 p->iOffset = pPrior->iOffset;
115806 if( p->iOffset ){
115808 p->iLimit, p->iOffset+1, p->iOffset);
115900 p->iOffset = 0;
116132 codeOffset(v, p->iOffset, iContinue);
116456 sqlite3VdbeAddOp2(v, OP_Copy, p->iOffset ? p->iOffset+1 : p->iLimit,
116493 savedOffset = p->iOffset;
116495 p->iOffset = 0;
116499 p->iOffset = savedOffset;
150005 int iOffset; /* current position in zInput */
150065 c->iOffset = 0; /* start tokenizing at the beginning */
150561 while( c->iOffset<c->nInput ){
150565 while( c->iOffset<c->nInput && isDelim(z[c->iOffset]) ){
150566 c->iOffset++;
150570 iStartOffset = c->iOffset;
150571 while( c->iOffset<c->nInput && !isDelim(z[c->iOffset]) ){
150572 c->iOffset++;
150575 if( c->iOffset>iStartOffset ){
150576 int n = c->iOffset-iStartOffset;
150587 *piEndOffset = c->iOffset;
151184 int iOffset; /* current position in pInput */
151273 c->iOffset = 0; /* start tokenizing at the beginning */
151309 while( c->iOffset<c->nBytes ){
151313 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
151314 c->iOffset++;
151318 iStartOffset = c->iOffset;
151319 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
151320 c->iOffset++;
151323 if( c->iOffset>iStartOffset ){
151324 int i, n = c->iOffset-iStartOffset;
151342 *piEndOffset = c->iOffset;
169787 i64 iOffset; /* Value of 'pgOffset' column */
170084 pCsr->iOffset = (i64)pCsr->szPage * (pCsr->iPageno - 1);
170092 pCsr->iOffset = x[0];
170315 sqlite3_result_int64(ctx, pCsr->iOffset);