Home | History | Annotate | Download | only in amalgamation

Lines Matching defs:iOffset

5524 ** from the open BLOB, starting at offset iOffset.)^
5526 ** ^If offset iOffset is less than N bytes from the end of the BLOB,
5527 ** [SQLITE_ERROR] is returned and no data is read. ^If N or iOffset is
5529 ** ^The size of the blob (and hence the maximum value of N+iOffset)
5545 SQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);
5552 ** into the open BLOB, starting at offset iOffset.
5560 ** ^If offset iOffset is less than N bytes from the end of the BLOB,
5563 ** The size of the BLOB (and hence the maximum value of N+iOffset)
5583 SQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);
10390 int iLimit, iOffset; /* Memory registers holding LIMIT & OFFSET counters */
16257 int iOffset; /* An offset into mem5.aCtrl[] */
16288 iOffset = 0;
16291 if( (iOffset+nAlloc)<=mem5.nBlock ){
16292 mem5.aCtrl[iOffset] = ii | CTRL_FREE;
16293 memsys5Link(iOffset, ii);
16294 iOffset += nAlloc;
16296 assert((iOffset+nAlloc)>mem5.nBlock);
31752 ** argument to offset iOffset within the file. If successful, return 0.
31755 static int seekWinFile(winFile *pFile, sqlite3_int64 iOffset){
31760 upperBits = (LONG)((iOffset>>32) & 0x7fffffff);
31761 lowerBits = (LONG)(iOffset & 0xffffffff);
32921 int iOffset = pShmNode->nRegion*szRegion;
32922 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
32924 0, iOffset - iOffsetShift, szRegion + iOffsetShift
32927 (int)GetCurrentProcessId(), pShmNode->nRegion, iOffset, szRegion,
32945 int iOffset = iRegion*szRegion;
32946 int iOffsetShift = iOffset % winSysInfo.dwAllocationGranularity;
36876 i64 iOffset; /* Starting offset in main journal */
39246 i64 iOffset = (pgno-1)*(i64)pPager->pageSize;
39247 rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset);
39587 ** offset PagerSavepoint.iOffset and continuing to
39648 ** PagerSavepoint.iOffset and continuing to the next journal header.
39656 pPager->journalOff = pSavepoint->iOffset;
42579 aNew[ii].iOffset = pPager->journalOff;
42581 aNew[ii].iOffset = JOURNAL_HDR_SZ(pPager);
44360 i64 iOffset; /* Next offset to read from log file */
44419 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
44425 rc = sqlite3OsRead(pWal->pWalFd, aFrame, szFrame, iOffset);
44982 i64 iOffset;
44985 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
44986 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL file */
44987 rc = sqlite3OsRead(pWal->pWalFd, zBuf, szPage, iOffset);
44989 iOffset = (iDbpage-1)*(i64)szPage;
44990 testcase( IS_BIG_INT(iOffset) );
44991 rc = sqlite3OsWrite(pWal->pDbFd, zBuf, szPage, iOffset);
45592 i64 iOffset;
45597 iOffset = walFrameOffset(iRead, sz) + WAL_FRAME_HDRSIZE;
45599 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */
45600 return sqlite3OsRead(pWal->pWalFd, pOut, nOut, iOffset);
45904 i64 iOffset; /* Write offset in log file */
45907 iOffset = walFrameOffset(++iFrame, szPage);
45908 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */
45918 rc = sqlite3OsWrite(pWal->pWalFd, aFrame, sizeof(aFrame), iOffset);
45924 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset+sizeof(aFrame));
45934 i64 iOffset = walFrameOffset(iFrame+1, szPage);
45939 iSegment = (((iOffset+iSegment-1)/iSegment) * iSegment);
45940 while( iOffset<iSegment ){
45948 /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */
45949 rc = sqlite3OsWrite(pWal->pWalFd, aFrame, sizeof(aFrame), iOffset);
45953 iOffset += WAL_FRAME_HDRSIZE;
45954 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset);
45959 iOffset += szPage;
68456 int iOffset; /* Byte offset of blob in cursor data */
68504 p->iOffset = v->apCsr[0]->aOffset[p->iCol];
68786 int iOffset,
68799 if( n<0 || iOffset<0 || (iOffset+n)>p->nByte ){
68814 rc = xCall(p->pCsr, iOffset+p->iOffset, n, z);
68832 SQLITE_API int sqlite3_blob_read(sqlite3_blob *pBlob, void *z, int n, int iOffset){
68833 return blobReadWrite(pBlob, z, n, iOffset, sqlite3BtreeData);
68839 SQLITE_API int sqlite3_blob_write(sqlite3_blob *pBlob, const void *z, int n, int iOffset){
68840 return blobReadWrite(pBlob, (void *)z, n, iOffset, sqlite3BtreePutData);
69189 sqlite3_int64 iOffset; /* Offset from the beginning of the file */
69221 assert( iOfst+iAmt<=p->endpoint.iOffset );
69223 if( p->readpoint.iOffset!=iOfst || iOfst==0 ){
69244 p->readpoint.iOffset = iOfst+iAmt;
69266 assert( iOfst==p->endpoint.iOffset );
69271 int iChunkOffset = (int)(p->endpoint.iOffset%JOURNAL_CHUNKSIZE);
69294 p->endpoint.iOffset += iSpace;
69345 *pSize = (sqlite_int64) p->endpoint.iOffset;
71692 pNew->iOffset = 0;
87569 static const u8 iOffset[] = {0, 1, 2, 4, 9, 12, 16};
87578 if( iLength[i]==n && sqlite3StrNICmp(&zText[iOffset[i]],z,n)==0 ){
90355 if( pSelect->iOffset ){
90356 iLimit = pSelect->iOffset+1;
90378 if( p->iOffset && iContinue!=0 ){
90380 sqlite3VdbeAddOp2(v, OP_AddImm, p->iOffset, -1);
90381 addr = sqlite3VdbeAddOp1(v, OP_IfNeg, p->iOffset);
91321 ** Compute the iLimit and iOffset fields of the SELECT based on the
91324 ** keywords. Or NULL if those keywords are omitted. iLimit and iOffset
91327 ** iLimit and iOffset are negative.
91329 ** This routine changes the values of iLimit and iOffset only if
91331 ** iOffset should have been preset to appropriate default values
91341 int iOffset;
91372 p->iOffset = iOffset = ++pParse->nMem;
91374 sqlite3ExprCode(pParse, p->pOffset, iOffset);
91375 sqlite3VdbeAddOp1(v, OP_MustBeInt, iOffset);
91377 addr1 = sqlite3VdbeAddOp1(v, OP_IfPos, iOffset);
91378 sqlite3VdbeAddOp2(v, OP_Integer, 0, iOffset);
91380 sqlite3VdbeAddOp3(v, OP_Add, iLimit, iOffset, iOffset+1);
91383 sqlite3VdbeAddOp2(v, OP_Integer, -1, iOffset+1);
91538 p->iOffset = pPrior->iOffset;
91632 p->iOffset = 0;
92074 int savedOffset; /* Saved value of p->iOffset */
92210 sqlite3VdbeAddOp2(v, OP_Copy, p->iOffset ? p->iOffset+1 : p->iLimit,
92254 savedOffset = p->iOffset;
92256 p->iOffset = 0;
92260 p->iOffset = savedOffset;
110619 static const unsigned char *PageData(DbPage *pPage, unsigned iOffset){
110620 assert( iOffset<=pPage->nPageSize );
110621 return (unsigned char *)pPage->pData + iOffset;
118600 int iOffset; /* current position in zInput */
118660 c->iOffset = 0; /* start tokenizing at the beginning */
119140 while( c->iOffset<c->nInput ){
119144 while( c->iOffset<c->nInput && isDelim(z[c->iOffset]) ){
119145 c->iOffset++;
119149 iStartOffset = c->iOffset;
119150 while( c->iOffset<c->nInput && !isDelim(z[c->iOffset]) ){
119151 c->iOffset++;
119154 if( c->iOffset>iStartOffset ){
119155 int n = c->iOffset-iStartOffset;
119166 *piEndOffset = c->iOffset;
119729 int iOffset; /* current position in pInput */
119818 c->iOffset = 0; /* start tokenizing at the beginning */
119854 while( c->iOffset<c->nBytes ){
119858 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
119859 c->iOffset++;
119863 iStartOffset = c->iOffset;
119864 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
119865 c->iOffset++;
119868 if( c->iOffset>iStartOffset ){
119869 int i, n = c->iOffset-iStartOffset;
119887 *piEndOffset = c->iOffset;