Lines Matching refs:PGHDR_TO_DATA
134 #define PGHDR_TO_DATA(P) ((void*)(&(P)[1])) macro
297 p->pgno, (int)PGHDR_TO_DATA(p), p->nRef in pager_refinfo()
358 ac = &((unsigned char*)PGHDR_TO_DATA(p))[offset]; in store32bits()
571 memcpy(PGHDR_TO_DATA(pPg), pgRec.aData, SQLITE_PAGE_SIZE); in pager_playback_one_page()
575 CODEC(pPager, PGHDR_TO_DATA(pPg), pPg->pgno, 3); in pager_playback_one_page()
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()
1260 CODEC(pPager, PGHDR_TO_DATA(pList), pList->pgno, 6); in pager_write_pagelist()
1262 rc = sqliteOsWrite(&pPager->fd, PGHDR_TO_DATA(pList), SQLITE_PAGE_SIZE); in pager_write_pagelist()
1263 CODEC(pPager, PGHDR_TO_DATA(pList), pList->pgno, 0); in pager_write_pagelist()
1514 sqlitepager_unref(PGHDR_TO_DATA(pPg)); in sqlitepager_get()
1519 memset(PGHDR_TO_DATA(pPg), 0, SQLITE_PAGE_SIZE); in sqlitepager_get()
1523 rc = sqliteOsRead(&pPager->fd, PGHDR_TO_DATA(pPg), SQLITE_PAGE_SIZE); in sqlitepager_get()
1525 CODEC(pPager, PGHDR_TO_DATA(pPg), pPg->pgno, 3); in sqlitepager_get()
1530 sqlitepager_unref(PGHDR_TO_DATA(pPg)); in sqlitepager_get()
1533 memset(PGHDR_TO_DATA(pPg), 0, SQLITE_PAGE_SIZE); in sqlitepager_get()
1542 *ppPage = PGHDR_TO_DATA(pPg); in sqlitepager_get()
1572 return PGHDR_TO_DATA(pPg); in sqlitepager_lookup()
2217 pPg->pgno, (int)PGHDR_TO_DATA(pPg), pPg->nRef); in sqlitepager_refdump()