Lines Matching refs:aData
38829 static u32 pager_cksum(Pager *pPager, const u8 *aData){
38833 cksum += aData[i];
38902 char *aData; /* Temporary storage for the page */
38911 aData = pPager->pTmpSpace;
38912 assert( aData ); /* Temp storage must have already been allocated */
38932 rc = sqlite3OsRead(jfd, (u8*)aData, pPager->pageSize, (*pOffset)+4);
38951 if( !isSavepnt && pager_cksum(pPager, (u8*)aData)!=cksum ){
38965 if( pgno==1 && pPager->nReserve!=((u8*)aData)[20] ){
38966 pPager->nReserve = ((u8*)aData)[20];
39013 PAGERID(pPager), pgno, pager_datahash(pPager->pageSize, (u8*)aData),
39028 rc = sqlite3OsWrite(pPager->fd, (u8*)aData, pPager->pageSize, ofst);
39033 CODEC1(pPager, aData, pgno, 3, rc=SQLITE_NOMEM);
39034 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)aData);
39035 CODEC2(pPager, aData, pgno, 7, rc=SQLITE_NOMEM, aData);
39073 memcpy(pData, (u8*)aData, pPager->pageSize);
43617 void *aData = 0;
43618 CODEC2(pPg->pPager, pPg->pData, pPg->pgno, 6, return 0, aData);
43619 return aData;
44223 u32 *aData = (u32 *)a;
44238 s1 += *aData++ + s2;
44239 s2 += *aData++ + s1;
44240 }while( aData<aEnd );
44243 s1 += BYTESWAP32(aData[0]) + s2;
44244 s2 += BYTESWAP32(aData[1]) + s1;
44245 aData += 2;
44246 }while( aData<aEnd );
44294 u8 *aData, /* Pointer to page data */
44306 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
44321 u8 *aData, /* Pointer to page data (for checksum) */
44350 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
44717 u8 *aData; /* Pointer to data part of aFrame buffer */
44774 aData = &aFrame[WAL_FRAME_HDRSIZE];
44786 isValid = walDecodeFrame(pWal, &pgno, &nTruncate, aData, aFrame);
46889 u8 *aData; /* Pointer to disk image of the page data */
48374 ((P)->aData + ((P)->maskPage & get2byte(&(P)->aData[(P)->cellOffset+2*(I)])))
48599 data = pPage->aData;
48670 u8 * const data = pPage->aData; /* Local cache of pPage->aData */
48770 unsigned char *data = pPage->aData;
48900 assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) );
48917 data = pPage->aData;
49005 unsigned char *data = pPage->aData;
49041 pPage->aData = sqlite3PagerGetData(pDbPage);
49143 assert( pPage->aData );
49146 assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData );
49825 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
49827 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
49833 u8 *page1 = pPage1->aData;
49962 assert( pBt->pPage1->aData );
49964 assert( pBt->pPage1->aData );
49986 data = pP1->aData;
50158 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
50161 put4byte(&pPage1->aData[28], pBt->nPage);
50216 Pgno childPgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
50244 if( get4byte(pPage->aData)!=iFrom ){
50247 put4byte(pPage->aData, iTo);
50277 get4byte(&pPage->aData[pPage->hdrOffset+8])!=iFrom ){
50280 put4byte(&pPage->aData[pPage->hdrOffset+8], iTo);
50339 Pgno nextOvfl = get4byte(pDbPage->aData);
50403 nFreeList = get4byte(&pBt->pPage1->aData[36]);
50514 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
50555 nFree = get4byte(&pBt->pPage1->aData[36]);
50572 put4byte(&pBt->pPage1->aData[32], 0);
50573 put4byte(&pBt->pPage1->aData[36], 0);
50574 put4byte(&pBt->pPage1->aData[28], nFin);
50838 int nPage = get4byte(28+(u8*)pPage1->aData);
50914 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
50980 assert( pBt->pPage1 && pBt->pPage1->aData );
51271 next = get4byte(pPage->aData);
51368 || &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize]
51662 assert( get4byte(&pParent->aData[pParent->hdrOffset+8])==iChild );
51776 subpage = get4byte(&pRoot->aData[pRoot->hdrOffset+8]);
51825 pgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
52084 chldPg = get4byte(&pPage->aData[pPage->hdrOffset+8]);
52157 rc = moveToChild(pCur, get4byte(&pPage->aData[pPage->hdrOffset+8]));
52288 n = get4byte(&pPage1->aData[36]);
52321 put4byte(&pPage1->aData[36], n-1);
52330 iTrunk = get4byte(&pPrevTrunk->aData[0]);
52332 iTrunk = get4byte(&pPage1->aData[32]);
52345 k = get4byte(&pTrunk->aData[4]); /* # of leaves on this trunk page */
52356 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
52378 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
52384 memcpy(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4);
52392 Pgno iNewTrunk = get4byte(&pTrunk->aData[8]);
52407 memcpy(&pNewTrunk->aData[0], &pTrunk->aData[0], 4);
52408 put4byte(&pNewTrunk->aData[4], k-1);
52409 memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4);
52413 put4byte(&pPage1->aData[32], iNewTrunk);
52419 put4byte(&pPrevTrunk->aData[0], iNewTrunk);
52429 unsigned char *aData = pTrunk->aData;
52434 dist = sqlite3AbsInt32(get4byte(&aData[8]) - nearby);
52436 int d2 = sqlite3AbsInt32(get4byte(&aData[8+i*4]) - nearby);
52446 iPage = get4byte(&aData[8+closest*4]);
52462 memcpy(&aData[8+closest*4], &aData[4+k*4], 4);
52464 put4byte(&aData[4], k-1);
52506 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
52571 nFree = get4byte(&pPage1->aData[36]);
52572 put4byte(&pPage1->aData[36], nFree+1);
52583 memset(pPage->aData, 0, pPage->pBt->pageSize);
52604 iTrunk = get4byte(&pPage1->aData[32]);
52610 nLeaf = get4byte(&pTrunk->aData[4]);
52633 put4byte(&pTrunk->aData[4], nLeaf+1);
52634 put4byte(&pTrunk->aData[8+nLeaf*4], iPage);
52658 put4byte(pPage->aData, iTrunk);
52659 put4byte(&pPage->aData[4], 0);
52660 put4byte(&pPage1->aData[32], iPage);
52776 assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize]
52857 assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize]
52863 pPrior = pOvfl->aData;
52865 pPayload = &pOvfl->aData[4];
52877 assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize]
52923 data = pPage->aData;
53017 data = pPage->aData;
53066 u8 * const data = pPage->aData; /* Pointer to data for pPage */
53162 assert( pPage->aData[0]==(PTF_INTKEY|PTF_LEAFDATA|PTF_LEAF) );
53206 put4byte(&pParent->aData[pParent->hdrOffset+8], pgnoNew);
53249 Pgno child = get4byte(&pPage->aData[pPage->hdrOffset+8]);
53278 u8 * const aFrom = pFrom->aData;
53279 u8 * const aTo = pTo->aData;
53437 pRight = &pParent->aData[pParent->hdrOffset+8];
53474 int iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData);
53481 apDiv[i] = &aOvflSpace[apDiv[i]-pParent->aData];
53537 pOld->aData = (void*)&pOld[1];
53538 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
53549 u8 *aData = pOld->aData;
53554 apCell[nCell] = findCellv2(aData, maskPage, cellOffset, j);
53577 memcpy(apCell[nCell], &pOld->aData[8], 4);
53672 pageFlags = apOld[0]->aData[0];
53778 memcpy(&pNew->aData[8], pCell, 4);
53824 u8 *zChild = &apCopy[nOld-1]->aData[8];
53825 memcpy(&apNew[nNew-1]->aData[8], zChild, 4);
53845 (get2byte(&apNew[0]->aData[5])-apNew[0]->cellOffset-apNew[0]->nCell*2)
53939 u32 key = get4byte(&apNew[i]->aData[8]);
54030 zeroPage(pRoot, pChild->aData[0] & ~PTF_LEAF);
54031 put4byte(&pRoot->aData[pRoot->hdrOffset+8], pgnoChild);
54622 rc = clearDatabasePage(pBt, get4byte(&pPage->aData[8]), 1, pnChange);
54631 zeroPage(pPage, pPage->aData[0] | PTF_LEAF);
54825 *pMeta = get4byte(&pBt->pPage1->aData[36 + idx*4]);
54848 pP1 = pBt->pPage1->aData;
54923 rc = moveToChild(pCur, get4byte(&pPage->aData[pPage->hdrOffset+8]));
55187 && (&pCell[info.iOverflow]<=&pPage->aData[pBt->usableSize])
55217 pgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
55266 data = pPage->aData;
55382 checkList(&sCheck, 1, get4byte(&pBt->pPage1->aData[32]),
55383 get4byte(&pBt->pPage1->aData[36]), "Main freelist: ");
55670 u8 *aData = pBt->pPage1->aData;
55671 if( aData[18]!=(u8)iVersion || aData[19]!=(u8)iVersion ){
55676 aData[18] = (u8)iVersion;
55677 aData[19] = (u8)iVersion;
56302 SQLITE_PRIVATE void sqlite3BackupUpdate(sqlite3_backup *pBackup, Pgno iPage, const u8 *aData){
56314 rc = backupOnePage(p, iPage, aData);
119693 char *aData;
119784 char *aData; /* Pointer to block from malloc() */
119815 char *aData; /* Node data */
120117 p->aData = (char *)&p[1];
120129 p->aData = (char *)&p[1];
120133 p->nData += sqlite3Fts3PutVarint(&p->aData[p->nData], i);
120134 p->aData[p->nData] = '\0';
120164 assert( p->aData[p->nData]==0 );
120719 pReader->aNode = pReader->aDoclist = pList->aData;
121378 assert( pTree->aData==(char *)&pTree[1] );
121379 pTree->aData = (char *)sqlite3_malloc(nReq);
121380 if( !pTree->aData ){
121387 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nPrefix);
121390 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nSuffix);
121391 memcpy(&pTree->aData[nData], &zTerm[nPrefix], nSuffix);
121429 pNew->aData = (char *)&pNew[1];
121463 pTree->aData[nStart] = (char)iHeight;
121464 sqlite3Fts3PutVarint(&pTree->aData[nStart+1], iLeftChild);
121498 *paRoot = &pTree->aData[nStart];
121507 rc = fts3WriteSegment(p, iNextFree, &pIter->aData[nStart], nWrite);
121531 if( p->aData!=(char *)&p[1] ){
121532 sqlite3_free(p->aData);
121576 pWriter->aData = (char *)sqlite3_malloc(p->nNodeSize);
121577 if( !pWriter->aData ) return SQLITE_NOMEM;
121606 rc = fts3WriteSegment(p, pWriter->iFree++, pWriter->aData, nData);
121641 char *aNew = sqlite3_realloc(pWriter->aData, nReq);
121643 pWriter->aData = aNew;
121649 nData += sqlite3Fts3PutVarint(&pWriter->aData[nData], nPrefix);
121650 nData += sqlite3Fts3PutVarint(&pWriter->aData[nData], nSuffix);
121651 memcpy(&pWriter->aData[nData], &zTerm[nPrefix], nSuffix);
121653 nData += sqlite3Fts3PutVarint(&pWriter->aData[nData], nDoclist);
121654 memcpy(&pWriter->aData[nData], aDoclist, nDoclist);
121702 rc = fts3WriteSegment(p, pWriter->iFree++, pWriter->aData, pWriter->nData);
121714 p, iLevel, iIdx, 0, 0, 0, pWriter->aData, pWriter->nData);
121725 sqlite3_free(pWriter->aData);
122668 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
122672 memcpy(pRet, &p->pList->aData[nSkip], *pnData);