Lines Matching refs:szPage

6189 ** first parameter, szPage, is the size in bytes of the pages that must
6190 ** be allocated by the cache. ^szPage will not be a power of two. ^szPage
6220 ** A "page", in this context, means a buffer of szPage bytes aligned at an
6281 sqlite3_pcache *(*xCreate)(int szPage, int bPurgeable);
8341 int szPage, /* Size of every page */
10548 int szPage; /* Size of each page in pPage[] */
11490 0, /* szPage */
17640 if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512
17643 sqlite3GlobalConfig.szPage = 0;
32846 int szPage; /* Size of every page in this cache */
32993 int szPage, /* Size of every page */
33001 p->szPage = szPage;
33013 SQLITE_PRIVATE void sqlite3PcacheSetPageSize(PCache *pCache, int szPage){
33020 pCache->szPage = szPage;
33045 nByte = pCache->szPage + pCache->szExtra + sizeof(PgHdr);
33091 pPage->pExtra = (void*)&((char *)pPage->pData)[pCache->szPage];
33099 assert( pPage->pExtra==(void *)&((char *)&pPage[1])[pCache->szPage] );
33249 memset(pCache->pPage1->pData, 0, pCache->szPage);
33446 /* Cache configuration parameters. Page size (szPage) and the purgeable
33451 int szPage; /* Size of allocated pages in bytes */
33470 ** structure. A buffer of PgHdr1.pCache->szPage bytes is allocated
33519 ** When a PgHdr1 structure is allocated, the associated PCache1.szPage
33521 ** size of the allocation is sizeof(PgHdr1)+PCache1.szPage byte). The
33523 ** an argument and returns a pointer to the associated block of szPage
33525 ** a pointer to a block of szPage bytes of data and the return value is
33530 #define PGHDR1_TO_PAGE(p) (void*)(((char*)p) - p->pCache->szPage)
33531 #define PAGE_TO_PGHDR1(c, p) (PgHdr1*)(((char*)p) + c->szPage)
33651 int nByte = sizeof(PgHdr1) + pCache->szPage;
33722 if( pcache1.nSlot && pCache->szPage<=pcache1.szSlot ){
33901 static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
33907 pCache->szPage = szPage;
34043 if( pPage->pCache->szPage!=pCache->szPage ){
35921 int szPage; /* Page size */
35926 szPage = pPager->pageSize;
35930 if( 0==(dc&(SQLITE_IOCAP_ATOMIC|(szPage>>8)) || nSector>szPage) ){
41872 ** The szPage value can be any power of 2 between 512 and 32768, inclusive.
41882 u16 szPage; /* Database page size in bytes. 1==64K */
41975 ** assuming a database page size of szPage bytes. The offset returned
41978 #define walFrameOffset(iFrame, szPage) ( \
41979 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
41993 u32 szPage; /* Database page size */
42243 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
42287 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
42657 int szPage; /* Page size according to the log */
42673 szPage = sqlite3Get4byte(&aBuf[8]);
42675 || szPage&(szPage-1)
42676 || szPage>SQLITE_MAX_PAGE_SIZE
42677 || szPage<512
42682 pWal->szPage = szPage;
42705 szFrame = szPage + WAL_FRAME_HDRSIZE;
42732 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
42733 testcase( szPage<=32768 );
42734 testcase( szPage>=65536 );
43140 int szPage; /* Database page-size */
43149 szPage = (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
43150 testcase( szPage<=32768 );
43151 testcase( szPage>=65536 );
43163 if( szPage!=nBuf ){
43206 i64 nReq = ((i64)mxPage * szPage);
43218 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
43220 rc = sqlite3OsRead(pWal->pWalFd, zBuf, szPage, iOffset);
43222 iOffset = (iDbpage-1)*(i64)szPage;
43224 rc = sqlite3OsWrite(pWal->pDbFd, zBuf, szPage, iOffset);
43231 i64 szDb = pWal->hdr.nPage*(i64)szPage;
43355 pWal->szPage = (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
43356 testcase( pWal->szPage<=32768 );
43357 testcase( pWal->szPage>=65536 );
43805 sz = pWal->hdr.szPage;
43806 sz = (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
44051 int szPage, /* Database page-size in bytes */
44092 sqlite3Put4byte(&aWalHdr[8], szPage);
44100 pWal->szPage = szPage;
44111 assert( (int)pWal->szPage==szPage );
44119 iOffset = walFrameOffset(++iFrame, szPage);
44136 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset+sizeof(aFrame));
44146 i64 iOffset = walFrameOffset(iFrame+1, szPage);
44166 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset);
44171 iOffset += szPage;
44195 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
44196 testcase( szPage<=32768 );
44197 testcase( szPage>=65536 );
105006 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
105159 sqlite3GlobalConfig.szPage = va_arg(ap, int);