• Home
  • Raw
  • Download

Lines Matching refs:aData

3635   u8 *aData;
4457 …pPage->xParseCell(pPage, ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)…
4551 src = data = pPage->aData;
4654 u8 * const aData = pPg->aData;
4656 int pc = ((&aData[iAddr])[0]<<8 | (&aData[iAddr])[1]);
4666 size = ((&aData[pc+2])[0]<<8 | (&aData[pc+2])[1]);
4673 if( aData[hdr+7]>57 ) return 0;
4677 memcpy(&aData[iAddr], &aData[pc], 2);
4678 aData[hdr+7] += (u8)x;
4686 ((&aData[pc+2])[0] = (u8)((x)>>8), (&aData[pc+2])[1] = (u8)(x));
4688 return &aData[pc + x];
4691 pc = ((&aData[pc])[0]<<8 | (&aData[pc])[1]);
4709 u8 * const data = pPage->aData;
4786 unsigned char *data = pPage->aData;
4940 assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) );
4946 data = pPage->aData;
5013 data = pPage->aData;
5041 assert( pPage->aData == sqlite3PagerGetData(pPage->pDbPage) );
5045 data = pPage->aData + pPage->hdrOffset;
5056 pPage->aDataEnd = pPage->aData + pBt->usableSize;
5057 pPage->aDataOfst = pPage->aData + pPage->childPtrSize;
5086 unsigned char *data = pPage->aData;
5125 pPage->aData = sqlite3PagerGetData(pDbPage);
5131 assert( pPage->aData==sqlite3PagerGetData(pDbPage) );
5211 assert( (*ppPage)->aData==sqlite3PagerGetData(pDbPage) );
5240 assert( pPage->aData );
5244 assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData );
5253 assert( pPage->aData );
5257 assert( sqlite3PagerGetData(pPage->pDbPage)==pPage->aData );
5903 nPage = nPageHeader = sqlite3Get4byte(28+(u8*)pPage1->aData);
5905 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){
5914 u8 *page1 = pPage1->aData;
6030 assert( pPage1->aData );
6053 data = pP1->aData;
6216 if( pBt->nPage!=sqlite3Get4byte(&pPage1->aData[28]) ){
6219 sqlite3Put4byte(&pPage1->aData[28], pBt->nPage);
6228 *pSchemaVersion = sqlite3Get4byte(&pBt->pPage1->aData[40]);
6257 …u8 *pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
6268 Pgno childPgno = sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8]);
6280 if( sqlite3Get4byte(pPage->aData)!=iFrom ){
6283 sqlite3Put4byte(pPage->aData, iTo);
6294 …u8 *pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
6299 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
6317 sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8])!=iFrom ){
6320 sqlite3Put4byte(&pPage->aData[pPage->hdrOffset+8], iTo);
6360 Pgno nextOvfl = sqlite3Get4byte(pDbPage->aData);
6406 nFreeList = sqlite3Get4byte(&pBt->pPage1->aData[36]);
6512 Pgno nFree = sqlite3Get4byte(&pBt->pPage1->aData[36]);
6525 sqlite3Put4byte(&pBt->pPage1->aData[28], pBt->nPage);
6558 nFree = sqlite3Get4byte(&pBt->pPage1->aData[36]);
6569 sqlite3Put4byte(&pBt->pPage1->aData[32], 0);
6570 sqlite3Put4byte(&pBt->pPage1->aData[36], 0);
6571 sqlite3Put4byte(&pBt->pPage1->aData[28], nFin);
6723 int nPage = sqlite3Get4byte(&pPage1->aData[28]);
6851 assert( pBt->pPage1 && pBt->pPage1->aData );
7021 next = sqlite3Get4byte(pPage->aData);
7081 assert( aPayload > pPage->aData );
7082 if( (uptr)(aPayload - pPage->aData) > (pBt->usableSize - pCur->info.nLocal) ){
7249 assert( pCur->info.pPayload>pCur->pPage->aData || (sqlite3Config.neverCorrupt==0) );
7365 subpage = sqlite3Get4byte(&pRoot->aData[pRoot->hdrOffset+8]);
7384 …pgno = sqlite3Get4byte(((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->…
7398 pgno = sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8]);
7679 chldPg = sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8]);
7681 …chldPg = sqlite3Get4byte(((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)…
7769 rc = moveToChild(pCur, sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8]));
7838 …rc = moveToChild(pCur, sqlite3Get4byte(((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(…
7899 n = sqlite3Get4byte(&pPage1->aData[36]);
7936 sqlite3Put4byte(&pPage1->aData[36], n-1);
7949 iTrunk = sqlite3Get4byte(&pPrevTrunk->aData[0]);
7954 iTrunk = sqlite3Get4byte(&pPage1->aData[32]);
7967 assert( pTrunk->aData!=0 );
7970 k = sqlite3Get4byte(&pTrunk->aData[4]);
7981 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
8005 memcpy(&pPage1->aData[32], &pTrunk->aData[0], 4);
8011 memcpy(&pPrevTrunk->aData[0], &pTrunk->aData[0], 4);
8019 Pgno iNewTrunk = sqlite3Get4byte(&pTrunk->aData[8]);
8034 memcpy(&pNewTrunk->aData[0], &pTrunk->aData[0], 4);
8035 sqlite3Put4byte(&pNewTrunk->aData[4], k-1);
8036 memcpy(&pNewTrunk->aData[8], &pTrunk->aData[12], (k-1)*4);
8040 sqlite3Put4byte(&pPage1->aData[32], iNewTrunk);
8046 sqlite3Put4byte(&pPrevTrunk->aData[0], iNewTrunk);
8056 unsigned char *aData = pTrunk->aData;
8062 iPage = sqlite3Get4byte(&aData[8+i*4]);
8070 dist = sqlite3AbsInt32(sqlite3Get4byte(&aData[8]) - nearby);
8072 int d2 = sqlite3AbsInt32(sqlite3Get4byte(&aData[8+i*4]) - nearby);
8083 iPage = sqlite3Get4byte(&aData[8+closest*4]);
8101 memcpy(&aData[8+closest*4], &aData[4+k*4], 4);
8103 sqlite3Put4byte(&aData[4], k-1);
8147 sqlite3Put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage);
8196 nFree = sqlite3Get4byte(&pPage1->aData[36]);
8197 sqlite3Put4byte(&pPage1->aData[36], nFree+1);
8208 memset(pPage->aData, 0, pPage->pBt->pageSize);
8222 iTrunk = sqlite3Get4byte(&pPage1->aData[32]);
8228 nLeaf = sqlite3Get4byte(&pTrunk->aData[4]);
8238 sqlite3Put4byte(&pTrunk->aData[4], nLeaf+1);
8239 sqlite3Put4byte(&pTrunk->aData[8+nLeaf*4], iPage);
8263 sqlite3Put4byte(pPage->aData, iTrunk);
8264 sqlite3Put4byte(&pPage->aData[4], 0);
8265 sqlite3Put4byte(&pPage1->aData[32], iPage);
8369 assert( pCell<pPage->aData || pCell>=&pPage->aData[pPage->pBt->pageSize]
8430 assert( pPayload<pPage->aData || pPayload>=&pPage->aData[pBt->pageSize]
8480 assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize]
8486 pPrior = pOvfl->aData;
8488 pPayload = &pOvfl->aData[4];
8509 data = pPage->aData;
8596 data = pPage->aData;
8686 u8 * const aData = pPg->aData;
8688 u8 * const pEnd = &aData[usableSize];
8699 j = ((&aData[hdr+5])[0]<<8 | (&aData[hdr+5])[1]);
8701 memcpy(&pTmp[j], &aData[j], usableSize - j);
8711 if( (((uptr)(pCell)>=(uptr)(aData))&&((uptr)(pCell)<(uptr)(pEnd))) ){
8713 pCell = &pTmp[pCell - aData];
8721 ((pCellptr)[0] = (u8)(((pData - aData))>>8), (pCellptr)[1] = (u8)((pData - aData)));
8739 ((&aData[hdr+1])[0] = (u8)((0)>>8), (&aData[hdr+1])[1] = (u8)(0));
8740 ((&aData[hdr+3])[0] = (u8)((pPg->nCell)>>8), (&aData[hdr+3])[1] = (u8)(pPg->nCell));
8741 ((&aData[hdr+5])[0] = (u8)((pData - aData)>>8), (&aData[hdr+5])[1] = (u8)(pData - aData));
8742 aData[hdr+7] = 0x00;
8756 u8 *aData = pPg->aData;
8769 if( (aData[1]==0 && aData[2]==0) || (pSlot = pageFindSlot(pPg,sz,&rc))==0 ){
8788 ((pCellptr)[0] = (u8)(((pSlot - aData))>>8), (pCellptr)[1] = (u8)((pSlot - aData)));
8807 u8 * const aData = pPg->aData;
8808 u8 * const pEnd = &aData[pPg->pBt->usableSize];
8809 u8 * const pStart = &aData[pPg->hdrOffset + 8 + pPg->childPtrSize];
8826 assert( pFree>aData && (pFree - aData)<65536 );
8827 freeSpace(pPg, (u16)(pFree - aData), szFree);
8840 assert( pFree>aData && (pFree - aData)<65536 );
8841 freeSpace(pPg, (u16)(pFree - aData), szFree);
8853 u8 * const aData = pPg->aData;
8882 pData = &aData[(((((int)((&aData[hdr+5])[0]<<8 | (&aData[hdr+5])[1]))-1)&0xffff)+1)];
8926 ((&aData[hdr+3])[0] = (u8)((pPg->nCell)>>8), (&aData[hdr+3])[1] = (u8)(pPg->nCell));
8927 ((&aData[hdr+5])[0] = (u8)((pData - aData)>>8), (&aData[hdr+5])[1] = (u8)(pData - aData));
8965 assert( (sqlite3Config.neverCorrupt==0) || pPage->aData[0]==(0x01|0x04|0x08) );
8987 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(pPa…
9000 sqlite3Put4byte(&pParent->aData[pParent->hdrOffset+8], pgnoNew);
9012 u8 * const aFrom = pFrom->aData;
9013 u8 * const aTo = pTo->aData;
9123 pRight = &pParent->aData[pParent->hdrOffset+8];
9125 …pRight = ((pParent)->aData + ((pParent)->maskPage & __builtin_bswap16(*(u16*)(&(pParent)->aCellIdx…
9149 …apDiv[i] = ((pParent)->aData + ((pParent)->maskPage & __builtin_bswap16(*(u16*)(&(pParent)->aCellI…
9156 iOff = ((int)(long int)(apDiv[i])) - ((int)(long int)(pParent->aData));
9163 apDiv[i] = &aOvflSpace[apDiv[i]-pParent->aData];
9199 u8 *aData = pOld->aData;
9201 u8 *piCell = aData + pOld->cellOffset;
9208 if( pOld->aData[0]!=apOld[0]->aData[0] ){
9221 b.apCell[b.nCell] = aData + (maskPage & __builtin_bswap16(*(u16*)(piCell)));
9231 piEnd = aData + pOld->cellOffset + 2*pOld->nCell;
9234 b.apCell[b.nCell] = aData + (maskPage & __builtin_bswap16(*(u16*)(piCell)));
9259 memcpy(b.apCell[b.nCell], &pOld->aData[8], 4);
9380 pageFlags = apOld[0]->aData[0];
9453 memcpy(&apNew[nNew-1]->aData[8], &pOld->aData[8], 4);
9485 || !(((uptr)(pCell)>=(uptr)(pOld->aData))&&((uptr)(pCell)<(uptr)(pOld->aDataEnd)))
9512 memcpy(&pNew->aData[8], pCell, 4);
9590 …((((((int)((&apNew[0]->aData[5])[0]<<8 | (&apNew[0]->aData[5])[1]))-1)&0xffff)+1) - apNew[0]->cell…
9601 u32 key = sqlite3Get4byte(&apNew[i]->aData[8]);
9668 zeroPage(pRoot, pChild->aData[0] & ~0x08);
9669 sqlite3Put4byte(&pRoot->aData[pRoot->hdrOffset+8], pgnoChild);
9848 ovflPgno = sqlite3Get4byte(pPage->aData);
9852 rc = btreeOverwriteContent(pPage, pPage->aData+4, pX,
10003 …oldCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(i…
10091 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(iCe…
10156 …pCell = ((pLeaf)->aData + ((pLeaf)->maskPage & __builtin_bswap16(*(u16*)(&(pLeaf)->aCellIdx[2*(pLe…
10157 if( pCell<&pLeaf->aData[4] ) return sqlite3CorruptError(8929);
10386 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(i)]…
10395 rc = clearDatabasePage(pBt, sqlite3Get4byte(&pPage->aData[hdr+8]), 1, pnChange);
10405 zeroPage(pPage, pPage->aData[hdr] | 0x08);
10547 *pMeta = sqlite3Get4byte(&pBt->pPage1->aData[36 + idx*4]);
10565 pP1 = pBt->pPage1->aData;
10626 rc = moveToChild(pCur, sqlite3Get4byte(&pPage->aData[pPage->hdrOffset+8]));
10628 …rc = moveToChild(pCur, sqlite3Get4byte(((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(…
10889 data = pPage->aData;
11123 checkList(&sCheck, 1, sqlite3Get4byte(&pBt->pPage1->aData[32]),
11124 sqlite3Get4byte(&pBt->pPage1->aData[36]));
11134 mxInHdr = sqlite3Get4byte(&pBt->pPage1->aData[52]);
11141 }else if( sqlite3Get4byte(&pBt->pPage1->aData[64])!=0 ){
11344 u8 *aData = pBt->pPage1->aData;
11345 if( aData[18]!=(u8)iVersion || aData[19]!=(u8)iVersion ){
11350 aData[18] = (u8)iVersion;
11351 aData[19] = (u8)iVersion;