Lines Matching refs:pMethods

1715 ** for their own use.  The pMethods entry is a pointer to an
1721 const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
1733 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1737 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
2347 ** the xOpen method must set the sqlite3_file.pMethods to either
2349 ** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
22992 if( pId->pMethods ){
22993 pId->pMethods->xClose(pId);
22994 pId->pMethods = 0;
22999 return id->pMethods->xRead(id, pBuf, amt, offset);
23003 return id->pMethods->xWrite(id, pBuf, amt, offset);
23006 return id->pMethods->xTruncate(id, size);
23010 return flags ? id->pMethods->xSync(id, flags) : SQLITE_OK;
23014 return id->pMethods->xFileSize(id, pSize);
23018 return id->pMethods->xLock(id, lockType);
23021 return id->pMethods->xUnlock(id, lockType);
23025 return id->pMethods->xCheckReservedLock(id, pResOut);
23037 if( id->pMethods==0 ) return SQLITE_NOTFOUND;
23055 return id->pMethods->xFileControl(id, op, pArg);
23058 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
23062 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize;
23066 return id->pMethods->xDeviceCharacteristics(id);
23070 return id->pMethods->xShmLock(id, offset, n, flags);
23073 id->pMethods->xShmBarrier(id);
23076 return id->pMethods->xShmUnmap(id, deleteFlag);
23086 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
23094 return id->pMethods->xFetch(id, iOff, iAmt, pp);
23097 return id->pMethods->xUnfetch(id, iOff, p);
23128 assert( rc==SQLITE_OK || pFile->pMethods==0 );
38392 assert( fd->pMethods->xLock==nolockLock
38874 const sqlite3_io_methods *pMethods; /* Appropriate locking method */
38898 return aMap[i].pMethods;
39650 ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op
48080 p->base.pMethods = &memdb_io_methods;
48198 if( p->base.pMethods!=&memdb_io_methods ) return 0;
52412 ** if( pPager->jfd->pMethods ){ ...
52414 #define isOpen(pFd) ((pFd)->pMethods!=0)
52426 if( pPager->fd->pMethods==0 ) return 0;
55075 if( isOpen(fd) && fd->pMethods->iVersion>=3 ){
55640 assert( pPager->fd->pMethods->iVersion>=3 );
59034 const sqlite3_io_methods *pMethods = pPager->fd->pMethods;
59036 return pPager->exclusiveMode || (pMethods->iVersion>=2 && pMethods->xShmMap);
63057 if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
66937 if( pFile->pMethods ){
75593 if( pFd->pMethods ){
94274 if( pFd->pMethods->iVersion>=3 ){
94939 if( nByte<=(i64)(db->nMaxSorterMmap) && pFd->pMethods->iVersion>=3 ){
97267 return p->pMethods==&MemJournalMethods;
138611 if( id->pMethods!=0 && (sqlite3OsFileSize(id, &sz)!=SQLITE_OK || sz>0) ){
197921 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, (void volatile**)&ptr);
198008 nSectorSize = pDb->pMethods->xSectorSize(pDb);
198019 p->rc = pWal->pMethods->xSync(pWal, SQLITE_SYNC_NORMAL);
198078 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
198082 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
198092 p->rc = pReal->pMethods->xLock(pReal, SQLITE_LOCK_SHARED);
198094 p->rc = pReal->pMethods->xLock(pReal, SQLITE_LOCK_EXCLUSIVE);
198661 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
198666 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, &ptr);
199149 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
199284 rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
199367 int (*xShmLock)(sqlite3_file*,int,int,int) = p->pReal->pMethods->xShmLock;
199472 p->pReal->pMethods->xShmUnmap(p->pReal, 0);
199480 rc = p->pReal->pMethods->xClose(p->pReal);
199536 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
199548 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
199609 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
199630 return p->pReal->pMethods->xTruncate(p->pReal, size);
199644 return p->pReal->pMethods->xSync(p->pReal, flags);
199653 rc = p->pReal->pMethods->xFileSize(p->pReal, pSize);
199684 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
199695 return p->pReal->pMethods->xUnlock(p->pReal, eLock);
199703 return p->pReal->pMethods->xCheckReservedLock(p->pReal, pResOut);
199711 int (*xControl)(sqlite3_file*,int,void*) = p->pReal->pMethods->xFileControl;
199767 return p->pReal->pMethods->xSectorSize(p->pReal);
199775 return p->pReal->pMethods->xDeviceCharacteristics(p->pReal);
199804 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
199866 rc = p->pReal->pMethods->xShmMap(p->pReal, iRegion, szRegion, isWrite, pp);
199877 p->pReal->pMethods->xShmBarrier(p->pReal);
199894 rc = p->pReal->pMethods->xShmUnmap(p->pReal, delFlag);
199996 if( pFd->pReal->pMethods ){
199997 /* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
200000 pFile->pMethods = &rbuvfs_io_methods;