Lines Matching defs:pMethods

1032 ** for their own use.  The pMethods entry is a pointer to an
1038 const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
1050 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1054 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
1716 ** the xOpen method must set the sqlite3_file.pMethods to either
1718 ** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
24946 if( pId->pMethods ){
24947 pId->pMethods->xClose(pId);
24948 pId->pMethods = 0;
24953 return id->pMethods->xRead(id, pBuf, amt, offset);
24957 return id->pMethods->xWrite(id, pBuf, amt, offset);
24960 return id->pMethods->xTruncate(id, size);
24964 return flags ? id->pMethods->xSync(id, flags) : SQLITE_OK;
24968 return id->pMethods->xFileSize(id, pSize);
24973 return id->pMethods->xLock(id, lockType);
24977 return id->pMethods->xUnlock(id, lockType);
24981 return id->pMethods->xCheckReservedLock(id, pResOut);
24993 if( id->pMethods==0 ) return SQLITE_NOTFOUND;
25018 return id->pMethods->xFileControl(id, op, pArg);
25021 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
25025 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize;
25029 if( NEVER(id->pMethods==0) ) return 0;
25030 return id->pMethods->xDeviceCharacteristics(id);
25034 return id->pMethods->xShmLock(id, offset, n, flags);
25037 id->pMethods->xShmBarrier(id);
25040 return id->pMethods->xShmUnmap(id, deleteFlag);
25050 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
25058 return id->pMethods->xFetch(id, iOff, iAmt, pp);
25061 return id->pMethods->xUnfetch(id, iOff, p);
25093 assert( rc==SQLITE_OK || pFile->pMethods==0 );
36617 pFile->base.pMethods = &kvvfs_db_io_methods;
36623 pFile->base.pMethods = &kvvfs_jrnl_io_methods;
41949 assert( fd->pMethods->xLock==nolockLock
42431 const sqlite3_io_methods *pMethods; /* Appropriate locking method */
42455 return aMap[i].pMethods;
42700 pId->pMethods = pLockingStyle;
43237 ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op
50373 id->pMethods = pAppData ? pAppData->pMethod : &winIoMethod;
51887 pFd->pMethods = &memdb_io_methods;
52010 if( p->base.pMethods!=&memdb_io_methods ) return 0;
56303 ** if( pPager->jfd->pMethods ){ ...
56305 #define isOpen(pFd) ((pFd)->pMethods!=0)
56317 if( pPager->fd->pMethods==0 ) return 0;
59046 if( isOpen(fd) && fd->pMethods->iVersion>=3 ){
59619 assert( pPager->fd->pMethods->iVersion>=3 );
63088 const sqlite3_io_methods *pMethods = pPager->fd->pMethods;
63090 return pPager->exclusiveMode || (pMethods->iVersion>=2 && pMethods->xShmMap);
67298 if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
71350 if( pFile->pMethods ){
80501 if( pFd->pMethods ){
100393 if( pFd->pMethods->iVersion>=3 ){
101063 if( nByte<=(i64)(db->nMaxSorterMmap) && pFd->pMethods->iVersion>=3 ){
103352 pJfd->pMethods = (const sqlite3_io_methods*)&MemJournalMethods;
103378 if( pJfd->pMethods==&MemJournalMethods && (
103403 return p->pMethods==&MemJournalMethods;
149740 if( id->pMethods!=0 && (sqlite3OsFileSize(id, &sz)!=SQLITE_OK || sz>0) ){
211789 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, (void volatile**)&ptr);
211876 nSectorSize = pDb->pMethods->xSectorSize(pDb);
211887 p->rc = pWal->pMethods->xSync(pWal, SQLITE_SYNC_NORMAL);
211946 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
211950 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
211963 if( fd->pMethods ){
211964 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_SHARED);
211966 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_EXCLUSIVE);
212534 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
212539 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, &ptr);
213030 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
213165 rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
213296 int (*xShmLock)(sqlite3_file*,int,int,int) = p->pReal->pMethods->xShmLock;
213401 p->pReal->pMethods->xShmUnmap(p->pReal, 0);
213409 rc = p->pReal->pMethods->xClose(p->pReal);
213465 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
213477 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
213538 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
213559 return p->pReal->pMethods->xTruncate(p->pReal, size);
213573 return p->pReal->pMethods->xSync(p->pReal, flags);
213582 rc = p->pReal->pMethods->xFileSize(p->pReal, pSize);
213613 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
213624 return p->pReal->pMethods->xUnlock(p->pReal, eLock);
213632 return p->pReal->pMethods->xCheckReservedLock(p->pReal, pResOut);
213640 int (*xControl)(sqlite3_file*,int,void*) = p->pReal->pMethods->xFileControl;
213696 return p->pReal->pMethods->xSectorSize(p->pReal);
213704 return p->pReal->pMethods->xDeviceCharacteristics(p->pReal);
213735 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
213797 rc = p->pReal->pMethods->xShmMap(p->pReal, iRegion, szRegion, isWrite, pp);
213808 p->pReal->pMethods->xShmBarrier(p->pReal);
213825 rc = p->pReal->pMethods->xShmUnmap(p->pReal, delFlag);
213913 if( pFd->pReal->pMethods ){
213914 /* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
213917 pFile->pMethods = &rbuvfs_io_methods;