• Home
  • Raw
  • Download

Lines Matching refs:pageSize

7537 #define PAGER_MJ_PGNO(x) ((Pgno)((PENDING_BYTE/((x)->pageSize))+1))
31725 int pageSize; /* Number of bytes in a page */
31742 char *pTmpSpace; /* Pager.pageSize bytes of space for tmp use */
31778 ** the page number and the pPager->pageSize bytes of data for the page.
31795 #define JOURNAL_PG_SZ(pPager) ((pPager->pageSize) + 8)
31950 szPage = pPager->pageSize;
31981 return pager_datahash(pPage->pPager->pageSize, (unsigned char *)pPage->pData);
32168 u32 nHeader = pPager->pageSize; /* Size of buffer pointed to by zHeader */
32229 put32bits(&zHeader[sizeof(aJournalMagic)+16], pPager->pageSize);
32252 ** database page size. Since the zHeader buffer is only Pager.pageSize
32778 ** Parameter aData must point to a buffer of pPager->pageSize bytes
32784 ** of the page data, starting with byte offset (pPager->pageSize%200).
32798 int i = pPager->pageSize-200; /* Loop counter */
32873 rc = sqlite3OsRead(jfd, (u8*)aData, pPager->pageSize, (*pOffset)+4);
32875 *pOffset += pPager->pageSize + 4 + isMainJrnl*4;
32938 PAGERID(pPager), pgno, pager_datahash(pPager->pageSize, (u8*)aData),
32946 i64 ofst = (pgno-1)*(i64)pPager->pageSize;
32947 rc = sqlite3OsWrite(pPager->fd, (u8*)aData, pPager->pageSize, ofst);
32989 memcpy(pData, (u8*)aData, pPager->pageSize);
33170 ** changed to nPage pages (nPage*pPager->pageSize bytes). If the file
33189 newSize = pPager->pageSize*(i64)nPage;
33257 ** + pPager->pageSize bytes of data.
33321 ** (pPager->pageSize >= pPager->pVfs->mxPathname+1). Using os_unix.c,
33323 ** for pageSize.
33593 i64 offset = pSavepoint->iSubRec*(4+pPager->pageSize);
33595 assert( offset==ii*(4+pPager->pageSize) );
33729 pPager->xCodecSizeChng(pPager->pCodec, pPager->pageSize,
33771 u16 pageSize = *pPageSize;
33772 assert( pageSize==0 || (pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE) );
33775 && pageSize && pageSize!=pPager->pageSize
33777 char *pNew = (char *)sqlite3PageMalloc(pageSize);
33782 pPager->pageSize = pageSize;
33785 sqlite3PcacheSetPageSize(pPager->pPCache, pageSize);
33788 *pPageSize = (u16)pPager->pageSize;
33911 if( n>0 && n<pPager->pageSize ){
33914 nPage = (Pgno)(n / pPager->pageSize);
34317 i64 offset = (pgno-1)*(i64)pPager->pageSize; /* Offset to write */
34324 rc = sqlite3OsWrite(pPager->fd, pData, pPager->pageSize, offset);
34375 i64 offset = pPager->nSubRec*(4+pPager->pageSize);
34384 rc = sqlite3OsWrite(pPager->sjfd, pData2, pPager->pageSize, offset+4);
34709 ** Pager.pageSize and to allocate the Pager.pTmpSpace buffer.
34918 memset(pPg->pData, 0, pPager->pageSize);
34921 iOffset = (pgno-1)*(i64)pPager->pageSize;
34922 rc = sqlite3OsRead(pPager->fd, pPg->pData, pPager->pageSize, iOffset);
35300 memset(pPg->pData, 0, pPager->pageSize);
35635 rc = sqlite3OsWrite(pPager->jfd, pData2, pPager->pageSize,
35637 pPager->journalOff += pPager->pageSize+4;
35644 pPager->journalOff, pPager->pageSize));
35728 Pgno nPagePerSector = (pPager->sectorSize/pPager->pageSize);
35917 rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0);
37016 #define MX_CELL_SIZE(pBt) (pBt->pageSize-8)
37023 #define MX_CELL(pBt) ((pBt->pageSize-8)/6)
37209 u16 pageSize; /* Total number of bytes on a page */
37229 u8 *pTmpSpace; /* BtShared.pageSize bytes of space for tmp use */
39168 assert( pBt->pageSize>=512 && pBt->pageSize<=32768 );
39169 pPage->maskPage = pBt->pageSize - 1;
39277 assert( pBt->pageSize>=512 && pBt->pageSize<=32768 );
39278 pPage->maskPage = pBt->pageSize - 1;
39586 pBt->pageSize = get2byte(&zDbHeader[16]);
39587 if( pBt->pageSize<512 || pBt->pageSize>SQLITE_MAX_PAGE_SIZE
39588 || ((pBt->pageSize-1)&pBt->pageSize)!=0 ){
39589 pBt->pageSize = 0;
39611 rc = sqlite3PagerSetPagesize(pBt->pPager, &pBt->pageSize, nReserve);
39613 pBt->usableSize = pBt->pageSize - nReserve;
39614 assert( (pBt->pageSize & 7)==0 ); /* 8-byte alignment of pageSize */
39734 pBt->pTmpSpace = sqlite3PageMalloc( pBt->pageSize );
39883 SQLITE_PRIVATE int sqlite3BtreeSetPageSize(Btree *p, int pageSize, int nReserve, int iFix){
39893 nReserve = pBt->pageSize - pBt->usableSize;
39896 if( pageSize>=512 && pageSize<=SQLITE_MAX_PAGE_SIZE &&
39897 ((pageSize-1)&pageSize)==0 ){
39898 assert( (pageSize & 7)==0 );
39900 pBt->pageSize = (u16)pageSize;
39903 rc = sqlite3PagerSetPagesize(pBt->pPager, &pBt->pageSize, nReserve);
39904 pBt->usableSize = pBt->pageSize - (u16)nReserve;
39914 return p->pBt->pageSize;
39925 n = p->pBt->pageSize - p->pBt->usableSize;
40019 int pageSize;
40041 pageSize = get2byte(&page1[16]);
40042 if( ((pageSize-1)&pageSize)!=0 || pageSize<512 ||
40043 (SQLITE_MAX_PAGE_SIZE<32768 && pageSize>SQLITE_MAX_PAGE_SIZE)
40047 assert( (pageSize & 7)==0 );
40048 usableSize = pageSize - page1[20];
40049 if( pageSize!=pBt->pageSize ){
40051 ** of BtShared.pageSize, we have discovered that the page-size is
40052 ** actually pageSize. Unlock the database, leave pBt->pPage1 at
40058 pBt->pageSize = (u16)pageSize;
40060 rc = sqlite3PagerSetPagesize(pBt->pPager, &pBt->pageSize,
40061 pageSize-usableSize);
40067 pBt->pageSize = (u16)pageSize;
40145 put2byte(&data[16], pBt->pageSize);
40148 assert( pBt->usableSize<=pBt->pageSize && pBt->usableSize+255>=pBt->pageSize);
40149 data[20] = (u8)(pBt->pageSize - pBt->usableSize);
40256 ** file is not pBt->pageSize. In this case lockBtree() will update
40257 ** pBt->pageSize to the page-size of the file on disk.
42694 memset(pPage->aData, 0, pPage->pBt->pageSize);
42871 assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize]
42952 assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize]
42972 assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize]
43574 k = pBt->pageSize + ROUND8(sizeof(MemPage));
43578 + pBt->pageSize /* aSpace1 */
43614 MemPage *pOld = apCopy[i] = (MemPage*)&aSpace1[pBt->pageSize + k*i];
43617 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
43633 assert( sz<=pBt->pageSize/4 );
43634 assert( iSpace1<=pBt->pageSize );
43879 assert( sz<=pBt->pageSize/4 );
43880 assert( iOvflSpace<=pBt->pageSize );
44197 u8 *pSpace = sqlite3PageMalloc(pCur->pBt->pageSize);
45324 hit = sqlite3PageMalloc( pBt->pageSize );