• Home
  • Raw
  • Download

Lines Matching refs:iOffset

6693 SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);
6735 SQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);
15537 int iLimit, iOffset; /* Memory registers holding LIMIT & OFFSET counters */ member
22682 int iOffset; /* An offset into mem5.aCtrl[] */ in memsys5Init() local
22713 iOffset = 0; in memsys5Init()
22716 if( (iOffset+nAlloc)<=mem5.nBlock ){ in memsys5Init()
22717 mem5.aCtrl[iOffset] = ii | CTRL_FREE; in memsys5Init()
22718 memsys5Link(iOffset, ii); in memsys5Init()
22719 iOffset += nAlloc; in memsys5Init()
22721 assert((iOffset+nAlloc)>mem5.nBlock); in memsys5Init()
40387 static int winSeekFile(winFile *pFile, sqlite3_int64 iOffset){
40394 OSTRACE(("SEEK file=%p, offset=%lld\n", pFile->h, iOffset));
40396 upperBits = (LONG)((iOffset>>32) & 0x7fffffff);
40397 lowerBits = (LONG)(iOffset & 0xffffffff);
40427 x.QuadPart = iOffset;
42019 int iOffset = pShmNode->nRegion*szRegion;
42020 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
42023 iOffset - iOffsetShift, szRegion + iOffsetShift
42027 0, iOffset - iOffsetShift, szRegion + iOffsetShift
42031 osGetCurrentProcessId(), pShmNode->nRegion, iOffset,
42050 int iOffset = iRegion*szRegion;
42051 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
47478 i64 iOffset; /* Starting offset in main journal */
50042 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
50043 rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset);
50459 pPager->journalOff = pSavepoint->iOffset;
53810 aNew[ii].iOffset = pPager->journalOff;
53812 aNew[ii].iOffset = JOURNAL_HDR_SZ(pPager);
55774 i64 iOffset; /* Next offset to read from log file */
55834 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
55840 rc = sqlite3OsRead(pWal->pWalFd, aFrame, szFrame, iOffset);
56470 i64 iOffset;
56479 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
56481 rc = sqlite3OsRead(pWal->pWalFd, zBuf, szPage, iOffset);
56483 iOffset = (iDbpage-1)*(i64)szPage;
56484 testcase( IS_BIG_INT(iOffset) );
56485 rc = sqlite3OsWrite(pWal->pDbFd, zBuf, szPage, iOffset);
57340 i64 iOffset;
57345 iOffset = walFrameOffset(iRead, sz) + WAL_FRAME_HDRSIZE;
57347 return sqlite3OsRead(pWal->pWalFd, pOut, (nOut>sz ? sz : nOut), iOffset);
57592 sqlite3_int64 iOffset /* Start writing at this offset */
57595 if( iOffset<p->iSyncPoint && iOffset+iAmt>=p->iSyncPoint ){
57596 int iFirstAmt = (int)(p->iSyncPoint - iOffset);
57597 rc = sqlite3OsWrite(p->pFd, pContent, iFirstAmt, iOffset);
57599 iOffset += iFirstAmt;
57606 rc = sqlite3OsWrite(p->pFd, pContent, iAmt, iOffset);
57617 sqlite3_int64 iOffset /* Byte offset at which to write */
57628 rc = walWriteToLog(p, aFrame, sizeof(aFrame), iOffset);
57631 rc = walWriteToLog(p, pData, p->szPage, iOffset+sizeof(aFrame));
57706 i64 iOffset; /* Next byte to write in WAL file */
57788 iOffset = walFrameOffset(iFrame+1, szPage);
57822 assert( iOffset==walFrameOffset(iFrame, szPage) );
57824 rc = walWriteOneFrame(&w, p, nDbSize, iOffset);
57827 iOffset += szFrame;
57855 w.iSyncPoint = ((iOffset+sectorSize-1)/sectorSize)*sectorSize;
57856 bSync = (w.iSyncPoint==iOffset);
57858 while( iOffset<w.iSyncPoint ){
57859 rc = walWriteOneFrame(&w, pLast, nTruncate, iOffset);
57861 iOffset += szFrame;
85716 int iOffset; /* Byte offset of blob in cursor data */
85777 p->iOffset = pC->aType[p->iCol + pC->nField];
86067 int iOffset,
86080 if( n<0 || iOffset<0 || ((sqlite3_int64)iOffset+n)>p->nByte ){
86118 rc = xCall(p->pCsr, iOffset+p->iOffset, n, z);
86136 SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
86137 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreePayloadChecked);
86143 SQLITE_API int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
86144 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
89012 sqlite3_int64 iOffset; /* Offset from the beginning of the file */
89053 if( (iAmt+iOfst)>p->endpoint.iOffset ){
89058 assert( (iAmt+iOfst)<=p->endpoint.iOffset );
89059 assert( p->readpoint.iOffset==0 || p->readpoint.pChunk!=0 );
89060 if( p->readpoint.iOffset!=iOfst || iOfst==0 ){
89082 p->readpoint.iOffset = pChunk ? iOfst+iAmt : 0;
89116 if( iOff + nChunk > copy.endpoint.iOffset ){
89117 nChunk = copy.endpoint.iOffset - iOff;
89170 assert( iOfst==p->endpoint.iOffset || iOfst==0 );
89183 int iChunkOffset = (int)(p->endpoint.iOffset%p->nChunkSize);
89206 p->endpoint.iOffset += iSpace;
89228 p->endpoint.iOffset = 0;
89230 p->readpoint.iOffset = 0;
89260 *pSize = (sqlite_int64) p->endpoint.iOffset;
92536 pNew->iOffset = 0;
113477 static const u8 iOffset[] = {0, 1, 2, 4, 9, 12, 15, 20};
113487 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0
116851 pNew->iOffset = 0;
117255 assert( pSelect->iOffset==0 || pSelect->iLimit!=0 );
117256 iLimit = pSelect->iOffset ? pSelect->iOffset+1 : pSelect->iLimit;
117350 int iOffset, /* Register holding the offset counter */
117353 if( iOffset>0 ){
117354 sqlite3VdbeAddOp3(v, OP_IfPos, iOffset, iContinue, 1); VdbeCoverage(v);
117429 codeOffset(v, p->iOffset, iContinue);
117548 codeOffset(v, p->iOffset, iContinue);
117991 codeOffset(v, p->iOffset, addrContinue);
117996 codeOffset(v, p->iOffset, addrContinue);
118592 int iOffset;
118624 p->iOffset = iOffset = ++pParse->nMem;
118626 sqlite3ExprCode(pParse, p->pOffset, iOffset);
118627 sqlite3VdbeAddOp1(v, OP_MustBeInt, iOffset); VdbeCoverage(v);
118629 sqlite3VdbeAddOp3(v, OP_OffsetLimit, iLimit, iOffset+1, iOffset);
118769 regOffset = p->iOffset;
118771 p->iLimit = p->iOffset = 0;
119030 pPrior->iOffset = p->iOffset;
119042 p->iOffset = pPrior->iOffset;
119046 if( p->iOffset ){
119048 p->iLimit, p->iOffset+1, p->iOffset);
119140 p->iOffset = 0;
119362 codeOffset(v, p->iOffset, iContinue);
119684 sqlite3VdbeAddOp2(v, OP_Copy, p->iOffset ? p->iOffset+1 : p->iLimit,
119721 savedOffset = p->iOffset;
119723 p->iOffset = 0;
119727 p->iOffset = savedOffset;
154219 int iOffset; /* current position in zInput */
154279 c->iOffset = 0; /* start tokenizing at the beginning */
154775 while( c->iOffset<c->nInput ){
154779 while( c->iOffset<c->nInput && isDelim(z[c->iOffset]) ){
154780 c->iOffset++;
154784 iStartOffset = c->iOffset;
154785 while( c->iOffset<c->nInput && !isDelim(z[c->iOffset]) ){
154786 c->iOffset++;
154789 if( c->iOffset>iStartOffset ){
154790 int n = c->iOffset-iStartOffset;
154801 *piEndOffset = c->iOffset;
155398 int iOffset; /* current position in pInput */
155487 c->iOffset = 0; /* start tokenizing at the beginning */
155523 while( c->iOffset<c->nBytes ){
155527 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
155528 c->iOffset++;
155532 iStartOffset = c->iOffset;
155533 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
155534 c->iOffset++;
155537 if( c->iOffset>iStartOffset ){
155538 int i, n = c->iOffset-iStartOffset;
155556 *piEndOffset = c->iOffset;
174341 i64 iOffset; /* Value of 'pgOffset' column */
174638 pCsr->iOffset = (i64)pCsr->szPage * (pCsr->iPageno - 1);
174646 pCsr->iOffset = x[0];
174869 sqlite3_result_int64(ctx, pCsr->iOffset);