• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Heimdal-398.1.2/lib/sqlite/

Lines Matching defs:szPage

6509 ** first parameter, szPage, is the size in bytes of the pages that must
6510 ** be allocated by the cache. ^szPage will not be a power of two. ^szPage
6545 ** A "page", in this context, means a buffer of szPage bytes aligned at an
6609 sqlite3_pcache *(*xCreate)(int szPage, int bPurgeable);
8848 int szPage, /* Size of every page */
11096 int szPage; /* Size of each page in pPage[] */
12058 0, /* szPage */
18283 if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512
18286 sqlite3GlobalConfig.szPage = 0;
35199 int szPage; /* Size of every page in this cache */
35346 int szPage, /* Size of every page */
35354 p->szPage = szPage;
35366 SQLITE_PRIVATE void sqlite3PcacheSetPageSize(PCache *pCache, int szPage){
35373 pCache->szPage = szPage;
35398 nByte = pCache->szPage + pCache->szExtra + sizeof(PgHdr);
35451 pPage->pExtra = (void*)&((char *)pPage->pData)[pCache->szPage];
35459 assert( pPage->pExtra==(void *)&((char *)&pPage[1])[pCache->szPage] );
35609 memset(pCache->pPage1->pData, 0, pCache->szPage);
35899 /* Cache configuration parameters. Page size (szPage) and the purgeable
35905 int szPage; /* Size of allocated pages in bytes */
35924 ** structure. A buffer of PgHdr1.pCache->szPage bytes is allocated
35979 ** When a PgHdr1 structure is allocated, the associated PCache1.szPage
35981 ** size of the allocation is sizeof(PgHdr1)+PCache1.szPage byte). The
35983 ** an argument and returns a pointer to the associated block of szPage
35985 ** a pointer to a block of szPage bytes of data and the return value is
35990 #define PGHDR1_TO_PAGE(p) (void*)(((char*)p) - p->pCache->szPage)
35991 #define PAGE_TO_PGHDR1(c, p) (PgHdr1*)(((char*)p) + c->szPage)
35998 ( *(PGroupBlock **)&(((u8*)pPg)[sizeof(PgHdr1) + pCache->szPage]) = pBlock )
36001 ( *(PGroupBlock **)&(((u8*)pPg)[sizeof(PgHdr1) + pCache->szPage]) )
36165 int nByte = sizeof(PgHdr1) + pCache->szPage;
36374 if( pcache1.nSlot && pCache->szPage<=pcache1.szSlot ){
36565 static sqlite3_pcache *pcache1Create(int szPage, int bPurgeable){
36599 pCache->szPage = szPage;
36760 if( (pOtherCache = pPage->pCache)->szPage!=pCache->szPage ){
38653 int szPage; /* Page size */
38658 szPage = pPager->pageSize;
38662 if( 0==(dc&(SQLITE_IOCAP_ATOMIC|(szPage>>8)) || nSector>szPage) ){
40016 int szPage = pPager->pageSize;
40020 newSize = szPage*(i64)nPage;
40026 memset(pTmp, 0, szPage);
40027 testcase( (newSize-szPage) < currentSize );
40028 testcase( (newSize-szPage) == currentSize );
40029 testcase( (newSize-szPage) > currentSize );
40030 rc = sqlite3OsWrite(pPager->fd, pTmp, szPage, newSize-szPage);
44665 ** The szPage value can be any power of 2 between 512 and 32768, inclusive.
44675 u16 szPage; /* Database page size in bytes. 1==64K */
44768 ** assuming a database page size of szPage bytes. The offset returned
44771 #define walFrameOffset(iFrame, szPage) ( \
44772 WAL_HDRSIZE + ((iFrame)-1)*(i64)((szPage)+WAL_FRAME_HDRSIZE) \
44787 u32 szPage; /* Database page size */
45048 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
45092 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
45462 int szPage; /* Page size according to the log */
45478 szPage = sqlite3Get4byte(&aBuf[8]);
45480 || szPage&(szPage-1)
45481 || szPage>SQLITE_MAX_PAGE_SIZE
45482 || szPage<512
45487 pWal->szPage = szPage;
45510 szFrame = szPage + WAL_FRAME_HDRSIZE;
45537 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
45538 testcase( szPage<=32768 );
45539 testcase( szPage>=65536 );
45976 return (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
46019 int szPage; /* Database page-size */
46029 szPage = walPagesize(pWal);
46030 testcase( szPage<=32768 );
46031 testcase( szPage>=65536 );
46083 i64 nReq = ((i64)mxPage * szPage);
46095 iOffset = walFrameOffset(iFrame, szPage) + WAL_FRAME_HDRSIZE;
46097 rc = sqlite3OsRead(pWal->pWalFd, zBuf, szPage, iOffset);
46099 iOffset = (iDbpage-1)*(i64)szPage;
46101 rc = sqlite3OsWrite(pWal->pDbFd, zBuf, szPage, iOffset);
46108 i64 szDb = pWal->hdr.nPage*(i64)szPage;
46255 pWal->szPage = (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
46256 testcase( pWal->szPage<=32768 );
46257 testcase( pWal->szPage>=65536 );
46714 sz = pWal->hdr.szPage;
46715 sz = (pWal->hdr.szPage&0xfe00) + ((pWal->hdr.szPage&0x0001)<<16);
46978 int szPage, /* Database page-size in bytes */
47019 sqlite3Put4byte(&aWalHdr[8], szPage);
47027 pWal->szPage = szPage;
47038 assert( (int)pWal->szPage==szPage );
47046 iOffset = walFrameOffset(++iFrame, szPage);
47063 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset+sizeof(aFrame));
47073 i64 iOffset = walFrameOffset(iFrame+1, szPage);
47093 rc = sqlite3OsWrite(pWal->pWalFd, pData, szPage, iOffset);
47098 iOffset += szPage;
47122 pWal->hdr.szPage = (u16)((szPage&0xff00) | (szPage>>16));
47123 testcase( szPage<=32768 );
47124 testcase( szPage>=65536 );
110343 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage);
110506 sqlite3GlobalConfig.szPage = va_arg(ap, int);