Lines Matching refs:pMethods
1053 ** for their own use. The pMethods entry is a pointer to an
1059 const struct sqlite3_io_methods *pMethods; /* Methods for an open file */
1071 ** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element
1075 ** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element
1750 ** the xOpen method must set the sqlite3_file.pMethods to either
1752 ** this even if the open fails. SQLite expects that the sqlite3_file.pMethods
16263 ** if( pPager->jfd->pMethods ){ ...
16265 #define isOpen(pFd) ((pFd)->pMethods!=0)
26619 if( pId->pMethods ){
26620 pId->pMethods->xClose(pId);
26621 pId->pMethods = 0;
26626 return id->pMethods->xRead(id, pBuf, amt, offset);
26630 return id->pMethods->xWrite(id, pBuf, amt, offset);
26633 return id->pMethods->xTruncate(id, size);
26637 return flags ? id->pMethods->xSync(id, flags) : SQLITE_OK;
26641 return id->pMethods->xFileSize(id, pSize);
26646 return id->pMethods->xLock(id, lockType);
26650 return id->pMethods->xUnlock(id, lockType);
26654 return id->pMethods->xCheckReservedLock(id, pResOut);
26666 if( id->pMethods==0 ) return SQLITE_NOTFOUND;
26691 return id->pMethods->xFileControl(id, op, pArg);
26694 if( id->pMethods ) (void)id->pMethods->xFileControl(id, op, pArg);
26698 int (*xSectorSize)(sqlite3_file*) = id->pMethods->xSectorSize;
26702 if( NEVER(id->pMethods==0) ) return 0;
26703 return id->pMethods->xDeviceCharacteristics(id);
26707 return id->pMethods->xShmLock(id, offset, n, flags);
26710 id->pMethods->xShmBarrier(id);
26713 return id->pMethods->xShmUnmap(id, deleteFlag);
26723 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp);
26731 return id->pMethods->xFetch(id, iOff, iAmt, pp);
26734 return id->pMethods->xUnfetch(id, iOff, p);
26766 assert( rc==SQLITE_OK || pFile->pMethods==0 );
38686 pFile->base.pMethods = &kvvfs_db_io_methods;
38692 pFile->base.pMethods = &kvvfs_jrnl_io_methods;
44052 assert( fd->pMethods->xLock==nolockLock
44539 const sqlite3_io_methods *pMethods; /* Appropriate locking method */
44563 return aMap[i].pMethods;
44808 pId->pMethods = pLockingStyle;
45349 ** pFile->pMethods will be NULL so sqlite3OsClose will be a no-op
52814 id->pMethods = pAppData ? pAppData->pMethod : &winIoMethod;
54430 pFd->pMethods = &memdb_io_methods;
54553 if( p->base.pMethods!=&memdb_io_methods ) return 0;
58866 if( pPager->fd->pMethods==0 ) return 0; /* Case (1) */
58875 assert( pPager->fd->pMethods->xDeviceCharacteristics!=0 );
58876 if( (pPager->fd->pMethods->xDeviceCharacteristics(pPager->fd)
61592 if( isOpen(fd) && fd->pMethods->iVersion>=3 ){
62164 assert( pPager->fd->pMethods->iVersion>=3 );
65591 const sqlite3_io_methods *pMethods = pPager->fd->pMethods;
65593 return pPager->exclusiveMode || (pMethods->iVersion>=2 && pMethods->xShmMap);
70234 if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
74364 if( pFile->pMethods ){
83793 if( pFd->pMethods ){
104720 if( pFd->pMethods->iVersion>=3 ){
105392 if( nByte<=(i64)(db->nMaxSorterMmap) && pFd->pMethods->iVersion>=3 ){
107707 pJfd->pMethods = (const sqlite3_io_methods*)&MemJournalMethods;
107733 if( pJfd->pMethods==&MemJournalMethods && (
107758 return p->pMethods==&MemJournalMethods;
157367 if( id->pMethods!=0 && (sqlite3OsFileSize(id, &sz)!=SQLITE_OK || sz>0) ){
224279 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, (void volatile**)&ptr);
224366 nSectorSize = pDb->pMethods->xSectorSize(pDb);
224377 p->rc = pWal->pMethods->xSync(pWal, SQLITE_SYNC_NORMAL);
224436 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
224440 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
224460 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_SHARED);
224462 rc = fd->pMethods->xUnlock(fd, SQLITE_LOCK_NONE);
224469 if( rc==SQLITE_OK && fd->pMethods ){
224470 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_SHARED);
224472 rc = fd->pMethods->xLock(fd, SQLITE_LOCK_EXCLUSIVE);
225040 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
225045 p->rc = pDb->pMethods->xShmMap(pDb, 0, 32*1024, 0, &ptr);
225538 p->rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
225673 rc = pDb->pMethods->xSync(pDb, SQLITE_SYNC_NORMAL);
225805 int (*xShmLock)(sqlite3_file*,int,int,int) = p->pReal->pMethods->xShmLock;
225908 const sqlite3_io_methods *pMeth = p->pReal->pMethods;
225921 rc = p->pReal->pMethods->xClose(p->pReal);
225977 rc = p->pReal->pMethods->xRead(p->pReal, zBuf, iAmt, iOfst);
225989 rc = pFd->pMethods->xRead(pFd, zBuf, iAmt, iOfst);
226050 rc = p->pReal->pMethods->xWrite(p->pReal, zBuf, iAmt, iOfst);
226071 return p->pReal->pMethods->xTruncate(p->pReal, size);
226085 return p->pReal->pMethods->xSync(p->pReal, flags);
226094 rc = p->pReal->pMethods->xFileSize(p->pReal, pSize);
226125 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
226136 return p->pReal->pMethods->xUnlock(p->pReal, eLock);
226144 return p->pReal->pMethods->xCheckReservedLock(p->pReal, pResOut);
226152 int (*xControl)(sqlite3_file*,int,void*) = p->pReal->pMethods->xFileControl;
226208 return p->pReal->pMethods->xSectorSize(p->pReal);
226216 return p->pReal->pMethods->xDeviceCharacteristics(p->pReal);
226247 rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
226309 rc = p->pReal->pMethods->xShmMap(p->pReal, iRegion, szRegion, isWrite, pp);
226320 p->pReal->pMethods->xShmBarrier(p->pReal);
226337 rc = p->pReal->pMethods->xShmUnmap(p->pReal, delFlag);
226444 if( pFd->pReal->pMethods ){
226445 const sqlite3_io_methods *pMeth = pFd->pReal->pMethods;
226446 /* The xOpen() operation has succeeded. Set the sqlite3_file.pMethods
226450 pFile->pMethods = &rbuvfs_io_methods1;
226452 pFile->pMethods = &rbuvfs_io_methods;