Lines Matching defs:pMethods

1743 ** for their own use.  The pMethods entry is a pointer to an
1749 const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
1761 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1765 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
2375 ** the xOpen method must set the sqlite3_file.pMethods to either
2377 ** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
23328 if( pId->pMethods ){
23329 pId->pMethods->xClose(pId);
23330 pId->pMethods = 0;
23335 return id->pMethods->xRead(id, pBuf, amt, offset);
23339 return id->pMethods->xWrite(id, pBuf, amt, offset);
23342 return id->pMethods->xTruncate(id, size);
23346 return flags ? id->pMethods->xSync(id, flags) : SQLITE_OK;
23350 return id->pMethods->xFileSize(id, pSize);
23354 return id->pMethods->xLock(id, lockType);
23357 return id->pMethods->xUnlock(id, lockType);
23361 return id->pMethods->xCheckReservedLock(id, pResOut);
23373 if( id->pMethods==0 ) return SQLITE_NOTFOUND;
23398 return id->pMethods->xFileControl(id, op, pArg);
23401 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
23405 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize;
23409 return id->pMethods->xDeviceCharacteristics(id);
23413 return id->pMethods->xShmLock(id, offset, n, flags);
23416 id->pMethods->xShmBarrier(id);
23419 return id->pMethods->xShmUnmap(id, deleteFlag);
23429 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
23437 return id->pMethods->xFetch(id, iOff, iAmt, pp);
23440 return id->pMethods->xUnfetch(id, iOff, p);
23471 assert( rc==SQLITE_OK || pFile->pMethods==0 );
38858 assert( fd->pMethods->xLock==nolockLock
39340 const sqlite3_io_methods *pMethods; /* Appropriate locking method */
39364 return aMap[i].pMethods;
39609 pId->pMethods = pLockingStyle;
40116 ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op
47381 id->pMethods = pAppData ? pAppData->pMethod : &winIoMethod;
48610 pFile->pMethods = &memdb_io_methods;
48728 if( p->base.pMethods!=&memdb_io_methods ) return 0;
52947 ** if( pPager->jfd->pMethods ){ ...
52949 #define isOpen(pFd) ((pFd)->pMethods!=0)
52961 if( pPager->fd->pMethods==0 ) return 0;
55623 if( isOpen(fd) && fd->pMethods->iVersion>=3 ){
56188 assert( pPager->fd->pMethods->iVersion>=3 );
59585 const sqlite3_io_methods *pMethods = pPager->fd->pMethods;
59587 return pPager->exclusiveMode || (pMethods->iVersion>=2 && pMethods->xShmMap);
63668 if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
67597 if( pFile->pMethods ){
76426 if( pFd->pMethods ){
95364 if( pFd->pMethods->iVersion>=3 ){
96032 if( nByte<=(i64)(db->nMaxSorterMmap) && pFd->pMethods->iVersion>=3 ){
98314 pJfd->pMethods = (const sqlite3_io_methods*)&MemJournalMethods;
98340 if( pJfd->pMethods==&MemJournalMethods && (
98365 return p->pMethods==&MemJournalMethods;
141796 if( id->pMethods!=0 && (sqlite3OsFileSize(id, &sz)!=SQLITE_OK || sz>0) ){
201950 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, (void volatile**)&ptr);
202037 nSectorSize = pDb->pMethods->xSectorSize(pDb);
202048 p->rc = pWal->pMethods->xSync(pWal, SQLITE_SYNC_NORMAL);
202107 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
202111 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
202121 p->rc = pReal->pMethods->xLock(pReal, SQLITE_LOCK_SHARED);
202123 p->rc = pReal->pMethods->xLock(pReal, SQLITE_LOCK_EXCLUSIVE);
202690 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
202695 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, &ptr);
203178 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
203313 rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
203396 int (*xShmLock)(sqlite3_file*,int,int,int) = p->pReal->pMethods->xShmLock;
203501 p->pReal->pMethods->xShmUnmap(p->pReal, 0);
203509 rc = p->pReal->pMethods->xClose(p->pReal);
203565 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
203577 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
203638 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
203659 return p->pReal->pMethods->xTruncate(p->pReal, size);
203673 return p->pReal->pMethods->xSync(p->pReal, flags);
203682 rc = p->pReal->pMethods->xFileSize(p->pReal, pSize);
203713 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
203724 return p->pReal->pMethods->xUnlock(p->pReal, eLock);
203732 return p->pReal->pMethods->xCheckReservedLock(p->pReal, pResOut);
203740 int (*xControl)(sqlite3_file*,int,void*) = p->pReal->pMethods->xFileControl;
203796 return p->pReal->pMethods->xSectorSize(p->pReal);
203804 return p->pReal->pMethods->xDeviceCharacteristics(p->pReal);
203835 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
203897 rc = p->pReal->pMethods->xShmMap(p->pReal, iRegion, szRegion, isWrite, pp);
203908 p->pReal->pMethods->xShmBarrier(p->pReal);
203925 rc = p->pReal->pMethods->xShmUnmap(p->pReal, delFlag);
204027 if( pFd->pReal->pMethods ){
204028 /* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
204031 pFile->pMethods = &rbuvfs_io_methods;