Lines Matching defs:pMethods
1039 ** for their own use. The pMethods entry is a pointer to an
1045 const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
1057 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1061 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
1722 ** the xOpen method must set the sqlite3_file.pMethods to either
1724 ** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
26120 if( pId->pMethods ){
26121 pId->pMethods->xClose(pId);
26122 pId->pMethods = 0;
26127 return id->pMethods->xRead(id, pBuf, amt, offset);
26131 return id->pMethods->xWrite(id, pBuf, amt, offset);
26134 return id->pMethods->xTruncate(id, size);
26138 return flags ? id->pMethods->xSync(id, flags) : SQLITE_OK;
26142 return id->pMethods->xFileSize(id, pSize);
26147 return id->pMethods->xLock(id, lockType);
26151 return id->pMethods->xUnlock(id, lockType);
26155 return id->pMethods->xCheckReservedLock(id, pResOut);
26167 if( id->pMethods==0 ) return SQLITE_NOTFOUND;
26192 return id->pMethods->xFileControl(id, op, pArg);
26195 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
26199 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize;
26203 if( NEVER(id->pMethods==0) ) return 0;
26204 return id->pMethods->xDeviceCharacteristics(id);
26208 return id->pMethods->xShmLock(id, offset, n, flags);
26211 id->pMethods->xShmBarrier(id);
26214 return id->pMethods->xShmUnmap(id, deleteFlag);
26224 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
26232 return id->pMethods->xFetch(id, iOff, iAmt, pp);
26235 return id->pMethods->xUnfetch(id, iOff, p);
26267 assert( rc==SQLITE_OK || pFile->pMethods==0 );
38201 pFile->base.pMethods = &kvvfs_db_io_methods;
38207 pFile->base.pMethods = &kvvfs_jrnl_io_methods;
43573 assert( fd->pMethods->xLock==nolockLock
44060 const sqlite3_io_methods *pMethods; /* Appropriate locking method */
44084 return aMap[i].pMethods;
44329 pId->pMethods = pLockingStyle;
44870 ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op
51960 id->pMethods = pAppData ? pAppData->pMethod : &winIoMethod;
53481 pFd->pMethods = &memdb_io_methods;
53604 if( p->base.pMethods!=&memdb_io_methods ) return 0;
57910 ** if( pPager->jfd->pMethods ){ ...
57912 #define isOpen(pFd) ((pFd)->pMethods!=0)
57924 if( pPager->fd->pMethods==0 ) return 0;
60633 if( isOpen(fd) && fd->pMethods->iVersion>=3 ){
61204 assert( pPager->fd->pMethods->iVersion>=3 );
64630 const sqlite3_io_methods *pMethods = pPager->fd->pMethods;
64632 return pPager->exclusiveMode || (pMethods->iVersion>=2 && pMethods->xShmMap);
69243 if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
73348 if( pFile->pMethods ){
82739 if( pFd->pMethods ){
103418 if( pFd->pMethods->iVersion>=3 ){
104088 if( nByte<=(i64)(db->nMaxSorterMmap) && pFd->pMethods->iVersion>=3 ){
106399 pJfd->pMethods = (const sqlite3_io_methods*)&MemJournalMethods;
106425 if( pJfd->pMethods==&MemJournalMethods && (
106450 return p->pMethods==&MemJournalMethods;
155206 if( id->pMethods!=0 && (sqlite3OsFileSize(id, &sz)!=SQLITE_OK || sz>0) ){
221100 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, (void volatile**)&ptr);
221187 nSectorSize = pDb->pMethods->xSectorSize(pDb);
221198 p->rc = pWal->pMethods->xSync(pWal, SQLITE_SYNC_NORMAL);
221257 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
221261 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
221281 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_SHARED);
221283 rc = fd->pMethods->xUnlock(fd, SQLITE_LOCK_NONE);
221290 if( rc==SQLITE_OK && fd->pMethods ){
221291 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_SHARED);
221293 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_EXCLUSIVE);
221861 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
221866 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, &ptr);
222358 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
222493 rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
222624 int (*xShmLock)(sqlite3_file*,int,int,int) = p->pReal->pMethods->xShmLock;
222727 const sqlite3_io_methods *pMeth = p->pReal->pMethods;
222740 rc = p->pReal->pMethods->xClose(p->pReal);
222796 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
222808 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
222869 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
222890 return p->pReal->pMethods->xTruncate(p->pReal, size);
222904 return p->pReal->pMethods->xSync(p->pReal, flags);
222913 rc = p->pReal->pMethods->xFileSize(p->pReal, pSize);
222944 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
222955 return p->pReal->pMethods->xUnlock(p->pReal, eLock);
222963 return p->pReal->pMethods->xCheckReservedLock(p->pReal, pResOut);
222971 int (*xControl)(sqlite3_file*,int,void*) = p->pReal->pMethods->xFileControl;
223027 return p->pReal->pMethods->xSectorSize(p->pReal);
223035 return p->pReal->pMethods->xDeviceCharacteristics(p->pReal);
223066 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
223128 rc = p->pReal->pMethods->xShmMap(p->pReal, iRegion, szRegion, isWrite, pp);
223139 p->pReal->pMethods->xShmBarrier(p->pReal);
223156 rc = p->pReal->pMethods->xShmUnmap(p->pReal, delFlag);
223263 if( pFd->pReal->pMethods ){
223264 const sqlite3_io_methods *pMeth = pFd->pReal->pMethods;
223265 /* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
223269 pFile->pMethods = &rbuvfs_io_methods1;
223271 pFile->pMethods = &rbuvfs_io_methods;