Lines Matching refs:aData
40453 ** Parameter aData must point to a buffer of pPager->pageSize bytes
40471 static u32 pager_cksum(Pager *pPager, const u8 *aData){
40475 cksum += aData[i];
40544 char *aData; /* Temporary storage for the page */
40553 aData = pPager->pTmpSpace;
40554 assert( aData ); /* Temp storage must have already been allocated */
40574 rc = sqlite3OsRead(jfd, (u8*)aData, pPager->pageSize, (*pOffset)+4);
40593 if( !isSavepnt && pager_cksum(pPager, (u8*)aData)!=cksum ){
40607 if( pgno==1 && pPager->nReserve!=((u8*)aData)[20] ){
40608 pPager->nReserve = ((u8*)aData)[20];
40655 PAGERID(pPager), pgno, pager_datahash(pPager->pageSize, (u8*)aData),
40670 rc = sqlite3OsWrite(pPager->fd, (u8*)aData, pPager->pageSize, ofst);
40675 CODEC1(pPager, aData, pgno, 3, rc=SQLITE_NOMEM);
40676 sqlite3BackupUpdate(pPager->pBackup, pgno, (u8*)aData);
40677 aData, pgno, 7, rc=SQLITE_NOMEM, aData);
40715 memcpy(pData, (u8*)aData, pPager->pageSize);
45334 void *aData = 0;
45335 CODEC2(pPg->pPager, pPg->pData, pPg->pgno, 6, return 0, aData);
45336 return aData;
45945 u32 *aData = (u32 *)a;
45960 s1 += *aData++ + s2;
45961 s2 += *aData++ + s1;
45962 }while( aData<aEnd );
45965 s1 += BYTESWAP32(aData[0]) + s2;
45966 s2 += BYTESWAP32(aData[1]) + s1;
45967 aData += 2;
45968 }while( aData<aEnd );
46016 u8 *aData, /* Pointer to page data */
46028 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
46036 ** in aData[] is valid. If it is a valid frame, fill *piPage and
46043 u8 *aData, /* Pointer to page data (for checksum) */
46072 walChecksumBytes(nativeCksum, aData, pWal->szPage, aCksum, aCksum);
46439 u8 *aData; /* Pointer to data part of aFrame buffer */
46497 aData = &aFrame[WAL_FRAME_HDRSIZE];
46509 isValid = walDecodeFrame(pWal, &pgno, &nTruncate, aData, aFrame);
48731 u16 cellOffset; /* Index in aData of first cell pointer */
48739 u8 *aData; /* Pointer to disk image of the page data */
50235 ((P)->aData + ((P)->maskPage & get2byte(&(P)->aCellIdx[2*(I)])))
50458 data = pPage->aData;
50516 ** as the first argument. Write into *pIdx the index into pPage->aData[]
50529 u8 * const data = pPage->aData; /* Local cache of pPage->aData */
50619 ** Return a section of the pPage->aData to the freelist.
50629 unsigned char *data = pPage->aData;
50760 assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) );
50763 u16 pc; /* Address of a freeblock within pPage->aData[] */
50765 u8 *data; /* Equal to pPage->aData */
50777 data = pPage->aData;
50867 unsigned char *data = pPage->aData;
50905 pPage->aData = sqlite3PagerGetData(pDbPage);
50915 ** MemPage.aData elements if needed.
50943 ** MemPage.aData elements if needed.
51007 assert( pPage->aData );
51010 assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData );
51691 nPage = nPageHeader = get4byte(28+(u8*)pPage1->aData);
51693 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
51699 u8 *page1 = pPage1->aData;
51833 assert( pBt->pPage1->aData );
51835 assert( pBt->pPage1->aData );
51857 data = pP1->aData;
52033 if( pBt->nPage!=get4byte(&pPage1->aData[28]) ){
52036 put4byte(&pPage1->aData[28], pBt->nPage);
52091 Pgno childPgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
52119 if( get4byte(pPage->aData)!=iFrom ){
52122 put4byte(pPage->aData, iTo);
52137 && pCell+info.iOverflow+3<=pPage->aData+pPage->maskPage
52153 get4byte(&pPage->aData[pPage->hdrOffset+8])!=iFrom ){
52156 put4byte(&pPage->aData[pPage->hdrOffset+8], iTo);
52215 Pgno nextOvfl = get4byte(pDbPage->aData);
52279 nFreeList = get4byte(&pBt->pPage1->aData[36]);
52390 put4byte(&pBt->pPage1->aData[28], pBt->nPage);
52431 nFree = get4byte(&pBt->pPage1->aData[36]);
52448 put4byte(&pBt->pPage1->aData[32], 0);
52449 put4byte(&pBt->pPage1->aData[36], 0);
52450 put4byte(&pBt->pPage1->aData[28], nFin);
52706 /* The rollback may have destroyed the pPage1->aData value. So
52708 ** sure pPage1->aData is set correctly. */
52710 int nPage = get4byte(28+(u8*)pPage1->aData);
52788 pBt->nPage = get4byte(28 + pBt->pPage1->aData);
52854 assert( pBt->pPage1 && pBt->pPage1->aData );
53146 next = get4byte(pPage->aData);
53243 || &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize]
53351 && pBt->pPage1->aData[19]==0x01 /* (5) */
53571 assert( get4byte(&pParent->aData[pParent->hdrOffset+8])==iChild );
53698 subpage = get4byte(&pRoot->aData[pRoot->hdrOffset+8]);
53747 pgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
54010 chldPg = get4byte(&pPage->aData[pPage->hdrOffset+8]);
54089 rc = moveToChild(pCur, get4byte(&pPage->aData[pPage->hdrOffset+8]));
54220 n = get4byte(&pPage1->aData[36]);
54253 put4byte(&pPage1->aData[36], n-1);
54262 iTrunk = get4byte(&pPrevTrunk->aData[0]);
54264 iTrunk = get4byte(&pPage1->aData[32]);
54277 assert( pTrunk->aData!=0 );
54279 k = get4byte(&pTrunk->aData[4]); /* # of leaves on this trunk page */
54290 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
54312 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
54318 memcpy(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4);
54326 Pgno iNewTrunk = get4byte(&pTrunk->aData[8]);
54341 memcpy(&pNewTrunk->aData[0], &pTrunk->aData[0], 4);
54342 put4byte(&pNewTrunk->aData[4], k-1);
54343 memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4);
54347 put4byte(&pPage1->aData[32], iNewTrunk);
54353 put4byte(&pPrevTrunk->aData[0], iNewTrunk);
54363 unsigned char *aData = pTrunk->aData;
54368 dist = sqlite3AbsInt32(get4byte(&aData[8]) - nearby);
54370 int d2 = sqlite3AbsInt32(get4byte(&aData[8+i*4]) - nearby);
54380 iPage = get4byte(&aData[8+closest*4]);
54396 memcpy(&aData[8+closest*4], &aData[4+k*4], 4);
54398 put4byte(&aData[4], k-1);
54440 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
54505 nFree = get4byte(&pPage1->aData[36]);
54506 put4byte(&pPage1->aData[36], nFree+1);
54517 memset(pPage->aData, 0, pPage->pBt->pageSize);
54538 iTrunk = get4byte(&pPage1->aData[32]);
54544 nLeaf = get4byte(&pTrunk->aData[4]);
54567 put4byte(&pTrunk->aData[4], nLeaf+1);
54568 put4byte(&pTrunk->aData[8+nLeaf*4], iPage);
54592 put4byte(pPage->aData, iTrunk);
54593 put4byte(&pPage->aData[4], 0);
54594 put4byte(&pPage1->aData[32], iPage);
54627 if( pCell+info.iOverflow+3 > pPage->aData+pPage->maskPage ){
54683 ** Note that pCell does not necessary need to point to the pPage->aData
54685 ** be constructed in this temporary area then copied into pPage->aData
54713 assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize]
54794 assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize]
54800 pPrior = pOvfl->aData;
54802 pPayload = &pOvfl->aData[4];
54814 assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize]
54848 u8 *data; /* pPage->aData */
54860 data = pPage->aData;
54955 data = pPage->aData;
55004 u8 * const data = pPage->aData; /* Pointer to data for pPage */
55100 assert( pPage->aData[0]==(PTF_INTKEY|PTF_LEAFDATA|PTF_LEAF) );
55144 put4byte(&pParent->aData[pParent->hdrOffset+8], pgnoNew);
55187 Pgno child = get4byte(&pPage->aData[pPage->hdrOffset+8]);
55216 u8 * const aFrom = pFrom->aData;
55217 u8 * const aTo = pTo->aData;
55268 ** might not actually be stored in MemPage.aData[]. This can happen
55270 ** to the page and its siblings fit into MemPage.aData[] before returning.
55311 int pageFlags; /* Value of pPage->aData[0] */
55375 pRight = &pParent->aData[pParent->hdrOffset+8];
55414 iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData);
55421 apDiv[i] = &aOvflSpace[apDiv[i]-pParent->aData];
55477 pOld->aData = (void*)&pOld[1];
55478 memcpy(pOld->aData, apOld[i]->aData, pBt->pageSize);
55489 u8 *aData = pOld->aData;
55494 apCell[nCell] = findCellv2(aData, maskPage, cellOffset, j);
55517 memcpy(apCell[nCell], &pOld->aData[8], 4);
55618 pageFlags = apOld[0]->aData[0];
55724 memcpy(&pNew->aData[8], pCell, 4);
55770 u8 *zChild = &apCopy[nOld-1]->aData[8];
55771 memcpy(&apNew[nNew-1]->aData[8], zChild, 4);
55791 (get2byte(&apNew[0]->aData[5])-apNew[0]->cellOffset-apNew[0]->nCell*2)
55886 u32 key = get4byte(&apNew[i]->aData[8]);
55980 zeroPage(pRoot, pChild->aData[0] & ~PTF_LEAF);
55981 put4byte(&pRoot->aData[pRoot->hdrOffset+8], pgnoChild);
56573 rc = clearDatabasePage(pBt, get4byte(&pPage->aData[8]), 1, pnChange);
56582 zeroPage(pPage, pPage->aData[0] | PTF_LEAF);
56776 aData[36 + idx*4]);
56801 pP1 = pBt->pPage1->aData;
56881 rc = moveToChild(pCur, get4byte(&pPage->aData[pPage->hdrOffset+8]));
57145 && (&pCell[info.iOverflow]<=&pPage->aData[pBt->usableSize])
57175 pgno = get4byte(&pPage->aData[pPage->hdrOffset+8]);
57224 data = pPage->aData;
57340 checkList(&sCheck, 1, get4byte(&pBt->pPage1->aData[32]),
57341 get4byte(&pBt->pPage1->aData[36]), "Main freelist: ");
57629 u8 *aData = pBt->pPage1->aData;
57630 if( aData[18]!=(u8)iVersion || aData[19]!=(u8)iVersion ){
57635 aData[18] = (u8)iVersion;
57636 aData[19] = (u8)iVersion;
58265 SQLITE_PRIVATE void sqlite3BackupUpdate(sqlite3_backup *pBackup, Pgno iPage, const u8 *aData){
58277 rc = backupOnePage(p, iPage, aData);
125162 char *aData;
125252 int nSize; /* Size of allocation at aData */
125253 int nData; /* Bytes of data in aData */
125254 char *aData; /* Pointer to block from malloc() */
125285 char *aData; /* Node data */
125639 p->aData = (char *)&p[1];
125651 p->aData = (char *)&p[1];
125655 p->nData += sqlite3Fts3PutVarint(&p->aData[p->nData], i);
125656 p->aData[p->nData] = '\0';
125686 assert( p->aData[p->nData]==0 );
126304 pReader->aNode = pReader->aDoclist = pList->aData;
126959 assert( pTree->aData==(char *)&pTree[1] );
126960 pTree->aData = (char *)sqlite3_malloc(nReq);
126961 if( !pTree->aData ){
126968 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nPrefix);
126971 nData += sqlite3Fts3PutVarint(&pTree->aData[nData], nSuffix);
126972 memcpy(&pTree->aData[nData], &zTerm[nPrefix], nSuffix);
127010 pNew->aData = (char *)&pNew[1];
127044 pTree->aData[nStart] = (char)iHeight;
127045 sqlite3Fts3PutVarint(&pTree->aData[nStart+1], iLeftChild);
127079 *paRoot = &pTree->aData[nStart];
127088 rc = fts3WriteSegment(p, iNextFree, &pIter->aData[nStart], nWrite);
127112 if( p->aData!=(char *)&p[1] ){
127113 sqlite3_free(p->aData);
127157 pWriter->aData = (char *)sqlite3_malloc(p->nNodeSize);
127158 if( !pWriter->aData ) return SQLITE_NOMEM;
127187 rc = fts3WriteSegment(p, pWriter->iFree++, pWriter->aData, nData);
127222 char *aNew = sqlite3_realloc(pWriter->aData, nReq);
127224 pWriter->aData = aNew;
127230 nData += sqlite3Fts3PutVarint(&pWriter->aData[nData], nPrefix);
127231 nData += sqlite3Fts3PutVarint(&pWriter->aData[nData], nSuffix);
127232 memcpy(&pWriter->aData[nData], &zTerm[nPrefix], nSuffix);
127234 aData[nData], nDoclist);
127235 memcpy(&pWriter->aData[nData], aDoclist, nDoclist);
127283 rc = fts3WriteSegment(p, pWriter->iFree++, pWriter->aData, pWriter->nData);
127295 p, iLevel, iIdx, 0, 0, 0, pWriter->aData, pWriter->nData);
127306 sqlite3_free(pWriter->aData);
128398 nSkip = sqlite3Fts3GetVarint(p->pList->aData, &dummy);
128402 memcpy(pRet, &p->pList->aData[nSkip], *pnData);