Lines Matching refs:iOfst
1146 int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
1147 int (*xWrite)(sqlite3_file*, const void*, int iAmt, sqlite3_int64 iOfst);
1163 int (*xFetch)(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);
1164 int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p);
18353 int iOfst; /* else: start of token from start of statement */
30897 && (ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) || pExpr->w.iOfst<=0)
30902 db->errByteOffset = pExpr->w.iOfst;
35856 static int kvvfsReadDb(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
35857 static int kvvfsReadJrnl(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
36301 sqlite_int64 iOfst
36305 SQLITE_KV_LOG(("xRead('%s-journal',%d,%lld)\n", pFile->zClass, iAmt, iOfst));
36319 if( iOfst+iAmt>pFile->nJrnl ){
36322 memcpy(zBuf, pFile->aJrnl+iOfst, iAmt);
36333 sqlite_int64 iOfst
36340 assert( iOfst>=0 );
36342 SQLITE_KV_LOG(("xRead('%s-db',%d,%lld)\n", pFile->zClass, iAmt, iOfst));
36343 if( iOfst+iAmt>=512 ){
36344 if( (iOfst % iAmt)!=0 ){
36351 pgno = 1 + iOfst/iAmt;
36361 if( iOfst+iAmt<512 ){
36362 int k = iOfst+iAmt;
36365 if( n>=iOfst+iAmt ){
36366 memcpy(zBuf, &aData[2000+iOfst], iAmt);
36390 sqlite_int64 iOfst
36393 sqlite3_int64 iEnd = iOfst+iAmt;
36394 SQLITE_KV_LOG(("xWrite('%s-journal',%d,%lld)\n", pFile->zClass, iAmt, iOfst));
36402 if( pFile->nJrnl<iOfst ){
36403 memset(pFile->aJrnl+pFile->nJrnl, 0, iOfst-pFile->nJrnl);
36407 memcpy(pFile->aJrnl+iOfst, zBuf, iAmt);
36418 sqlite_int64 iOfst
36424 SQLITE_KV_LOG(("xWrite('%s-db',%d,%lld)\n", pFile->zClass, iAmt, iOfst));
36429 pgno = 1 + iOfst/iAmt;
36435 if( iOfst+iAmt > pFile->szDb ){
36436 pFile->szDb = iOfst + iAmt;
51377 static int memdbRead(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);
51378 static int memdbWrite(sqlite3_file*,const void*,int iAmt, sqlite3_int64 iOfst);
51388 static int memdbFetch(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);
51389 static int memdbUnfetch(sqlite3_file*, sqlite3_int64 iOfst, void *p);
51527 sqlite_int64 iOfst
51531 if( iOfst+iAmt>p->sz ){
51533 if( iOfst<p->sz ) memcpy(zBuf, p->aData+iOfst, p->sz - iOfst);
51537 memcpy(zBuf, p->aData+iOfst, iAmt);
51569 sqlite_int64 iOfst
51579 if( iOfst+iAmt>p->sz ){
51581 if( iOfst+iAmt>p->szAlloc
51582 && (rc = memdbEnlarge(p, iOfst+iAmt))!=SQLITE_OK
51587 if( iOfst>p->sz ) memset(p->aData+p->sz, 0, iOfst-p->sz);
51588 p->sz = iOfst+iAmt;
51590 memcpy(p->aData+iOfst, z, iAmt);
51783 sqlite3_int64 iOfst,
51789 if( iOfst+iAmt>p->sz || (p->mFlags & SQLITE_DESERIALIZE_RESIZEABLE)!=0 ){
51793 *pp = (void*)(p->aData + iOfst);
51800 static int memdbUnfetch(sqlite3_file *pFile, sqlite3_int64 iOfst, void *pPage){
51802 UNUSED_PARAMETER(iOfst);
103062 sqlite_int64 iOfst /* Begin reading at this offset */
103070 if( (iAmt+iOfst)>p->endpoint.iOffset ){
103074 if( p->readpoint.iOffset!=iOfst || iOfst==0 ){
103077 ALWAYS(pChunk) && (iOff+p->nChunkSize)<=iOfst;
103087 iChunkOffset = (int)(iOfst%p->nChunkSize);
103096 p->readpoint.iOffset = pChunk ? iOfst+iAmt : 0;
103163 sqlite_int64 iOfst /* Begin writing at this offset into the file */
103171 if( p->nSpill>0 && (iAmt+iOfst)>p->nSpill ){
103174 rc = sqlite3OsWrite(pJfd, zBuf, iAmt, iOfst);
103186 assert( iOfst<=p->endpoint.iOffset );
103187 if( iOfst>0 && iOfst!=p->endpoint.iOffset ){
103188 memjrnlTruncate(pJfd, iOfst);
103190 if( iOfst==0 && p->pFirst ){
106895 pNew->w.iOfst = (int)(pToken->z - pParse->zTail);
166406 p->w.iOfst = (int)(t.z - pParse->zTail);
170565 if( yylhsminor.yy528 ) yylhsminor.yy528->w.iOfst = (int)(yymsp[0].minor.yy0.z - pParse->zTail);
213448 sqlite_int64 iOfst
213456 rc = rbuCaptureWalRead(p->pRbu, iOfst, iAmt);
213460 && iOfst>=pRbu->iOalSz
213465 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
213472 && rc==SQLITE_IOERR_SHORT_READ && iOfst==0
213477 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
213496 if( rc==SQLITE_OK && iOfst==0 && (p->openFlags & SQLITE_OPEN_MAIN_DB) ){
213514 sqlite_int64 iOfst
213522 rc = rbuCaptureDbWrite(p->pRbu, iOfst);
213527 && iOfst>=pRbu->iOalSz
213529 pRbu->iOalSz = iAmt + iOfst;
213531 i64 szNew = iAmt+iOfst;
213538 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
213539 if( rc==SQLITE_OK && iOfst==0 && (p->openFlags & SQLITE_OPEN_MAIN_DB) ){