Lines Matching refs:SQLITE_PAGE_SIZE
136 #define PGHDR_TO_EXTRA(P) ((void*)&((char*)(&(P)[1]))[SQLITE_PAGE_SIZE])
217 char aData[SQLITE_PAGE_SIZE]; /* Original data for page pgno */
285 (SQLITE_PAGE_SIZE + sizeof(Pgno) + ((X)>=3)*sizeof(u32))
563 sqliteOsSeek(&pPager->fd, (pgRec.pgno-1)*(off_t)SQLITE_PAGE_SIZE); in pager_playback_one_page()
564 rc = sqliteOsWrite(&pPager->fd, pgRec.aData, SQLITE_PAGE_SIZE); in pager_playback_one_page()
571 memcpy(PGHDR_TO_DATA(pPg), pgRec.aData, SQLITE_PAGE_SIZE); in pager_playback_one_page()
705 rc = sqliteOsTruncate(&pPager->fd, SQLITE_PAGE_SIZE*(off_t)mxPg); in pager_playback()
730 char zBuf[SQLITE_PAGE_SIZE]; in pager_playback()
733 sqliteOsSeek(&pPager->fd, SQLITE_PAGE_SIZE*(off_t)(pPg->pgno-1)); in pager_playback()
734 rc = sqliteOsRead(&pPager->fd, zBuf, SQLITE_PAGE_SIZE); in pager_playback()
739 memset(zBuf, 0, SQLITE_PAGE_SIZE); in pager_playback()
741 if( pPg->nRef==0 || memcmp(zBuf, PGHDR_TO_DATA(pPg), SQLITE_PAGE_SIZE) ){ in pager_playback()
742 memcpy(PGHDR_TO_DATA(pPg), zBuf, SQLITE_PAGE_SIZE); in pager_playback()
783 rc = sqliteOsTruncate(&pPager->fd, SQLITE_PAGE_SIZE*(off_t)pPager->ckptSize); in pager_ckpt_playback()
1023 n /= SQLITE_PAGE_SIZE; in sqlitepager_pagecount()
1051 rc = sqliteOsTruncate(&pPager->fd, SQLITE_PAGE_SIZE*(off_t)nPage); in sqlitepager_truncate()
1259 sqliteOsSeek(&pPager->fd, (pList->pgno-1)*(off_t)SQLITE_PAGE_SIZE); in pager_write_pagelist()
1262 rc = sqliteOsWrite(&pPager->fd, PGHDR_TO_DATA(pList), SQLITE_PAGE_SIZE); in pager_write_pagelist()
1387 pPg = sqliteMallocRaw( sizeof(*pPg) + SQLITE_PAGE_SIZE in sqlitepager_get()
1519 memset(PGHDR_TO_DATA(pPg), 0, SQLITE_PAGE_SIZE); in sqlitepager_get()
1522 sqliteOsSeek(&pPager->fd, (pgno-1)*(off_t)SQLITE_PAGE_SIZE); in sqlitepager_get()
1523 rc = sqliteOsRead(&pPager->fd, PGHDR_TO_DATA(pPg), SQLITE_PAGE_SIZE); in sqlitepager_get()
1529 || fileSize>=pgno*SQLITE_PAGE_SIZE ){ in sqlitepager_get()
1533 memset(PGHDR_TO_DATA(pPg), 0, SQLITE_PAGE_SIZE); in sqlitepager_get()
1807 store32bits(cksum, pPg, SQLITE_PAGE_SIZE); in sqlitepager_write()
1808 szPg = SQLITE_PAGE_SIZE+8; in sqlitepager_write()
1810 szPg = SQLITE_PAGE_SIZE+4; in sqlitepager_write()
1852 rc = sqliteOsWrite(&pPager->cpfd, &((char*)pData)[-4], SQLITE_PAGE_SIZE+4); in sqlitepager_write()
1896 memcpy(pPage, pData, SQLITE_PAGE_SIZE); in sqlitepager_overwrite()