• Home
  • Raw
  • Download

Lines Matching refs:pCell

61499   u8 *pCell,              /* Pointer to the cell text. */
61525 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
61544 u8 *pCell, /* Pointer to the cell text. */
61553 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
61561 u8 *pCell, /* Pointer to the cell text. */
61572 pIter = pCell;
61620 pInfo->nSize = nPayload + (u16)(pIter - pCell);
61624 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
61629 u8 *pCell, /* Pointer to the cell text. */
61638 pIter = pCell + pPage->childPtrSize;
61657 pInfo->nSize = nPayload + (u16)(pIter - pCell);
61661 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
61684 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
61685 u8 *pIter = pCell + pPage->childPtrSize; /* For looping over bytes of pCell */
61695 pPage->xParseCell(pPage, pCell, &debuginfo);
61717 nSize += (u32)(pIter - pCell);
61727 nSize += 4 + (u16)(pIter - pCell);
61732 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
61733 u8 *pIter = pCell + 4; /* For looping over bytes of pCell */
61742 pPage->xParseCell(pPage, pCell, &debuginfo);
61750 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
61751 return (u16)(pIter - pCell);
61769 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
61772 assert( pCell!=0 );
61773 pPage->xParseCell(pPage, pCell, &info);
61775 Pgno ovfl = get4byte(&pCell[info.nSize-4]);
63870 u8 *pCell = findCell(pPage, i);
63872 ptrmapPutOvflPtr(pPage, pCell, &rc);
63875 Pgno childPgno = get4byte(pCell);
63921 u8 *pCell = findCell(pPage, i);
63924 pPage->xParseCell(pPage, pCell, &info);
63926 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
63929 if( iFrom==get4byte(pCell+info.nSize-4) ){
63930 put4byte(pCell+info.nSize-4, iTo);
63935 if( get4byte(pCell)==iFrom ){
63936 put4byte(pCell, iTo);
65734 u8 *pCell; /* Pointer to current cell in pPage */
65752 pCell = findCellPastPtr(pPage, idx);
65754 while( 0x80 <= *(pCell++) ){
65755 if( pCell>=pPage->aDataEnd ){
65760 getVarint(pCell, (u64*)&nCellKey);
65787 pCell = findCellPastPtr(pPage, idx);
65797 nCell = pCell[0];
65802 testcase( pCell+nCell+1==pPage->aDataEnd );
65803 c = xRecordCompare(nCell, (void*)&pCell[1], pIdxKey);
65804 }else if( !(pCell[1] & 0x80)
65805 && (nCell = ((nCell&0x7f)<<7) + pCell[1])<=pPage->maxLocal
65809 testcase( pCell+nCell+2==pPage->aDataEnd );
65810 c = xRecordCompare(nCell, (void*)&pCell[2], pIdxKey);
65822 u8 * const pCellBody = pCell - pPage->childPtrSize;
66617 unsigned char *pCell, /* First byte of the Cell */
66627 pPage->xParseCell(pPage, pCell, pInfo);
66631 if( pCell+pInfo->nSize-1 > pPage->aData+pPage->maskPage ){
66635 ovflPgno = get4byte(pCell + pInfo->nSize - 4);
66698 unsigned char *pCell, /* Complete text of the cell */
66717 assert( pCell<pPage->aData || pCell>=&pPage->aData[pPage->pBt->pageSize]
66727 nHeader += putVarint32(&pCell[nHeader], nPayload);
66728 nHeader += putVarint(&pCell[nHeader], *(u64*)&pX->nKey);
66733 nHeader += putVarint32(&pCell[nHeader], nPayload);
66737 pPayload = &pCell[nHeader];
66763 pPrior = &pCell[nHeader+n];
66783 pPage->xParseCell(pPage, pCell, &info);
66784 assert( nHeader==(int)(info.pPayload - pCell) );
66944 u8 *pCell, /* Content of the new cell */
66967 assert( sz==pPage->xCellSize(pPage, pCell) || (sz==8 && iChild>0) );
66970 memcpy(pTemp, pCell, sz);
66971 pCell = pTemp;
66974 put4byte(pCell, iChild);
66981 pPage->apOvfl[j] = pCell;
67008 memcpy(&data[idx], pCell, sz);
67024 ptrmapPutOvflPtr(pPage, pCell, pRC);
67109 u8 *pCell = apCell[i];
67110 if( SQLITE_WITHIN(pCell,aData,pEnd) ){
67111 pCell = &pTmp[pCell - aData];
67117 memcpy(pData, pCell, szCell[i]);
67118 assert( szCell[i]==pPg->xCellSize(pPg, pCell) || CORRUPT_DB );
67119 testcase( szCell[i]!=pPg->xCellSize(pPg,pCell) );
67220 u8 *pCell = pCArray->apCell[i];
67221 if( SQLITE_WITHIN(pCell, pStart, pEnd) ){
67227 if( pFree!=(pCell + sz) ){
67232 pFree = pCell;
67236 pFree = pCell;
67338 u8 *pCell = pCArray->apCell[i+iNew];
67340 if( SQLITE_WITHIN(pCell, aData, &aData[pPg->pBt->usableSize]) ){
67341 pCell = &pTmp[pCell - aData];
67343 assert( 0==memcmp(pCell, &aData[iOff],
67417 u8 *pCell = pPage->apOvfl[0];
67418 u16 szCell = pPage->xCellSize(pPage, pCell);
67424 rc = rebuildPage(pNew, 1, &pCell, &szCell);
67440 ptrmapPutOvflPtr(pNew, pCell, &rc);
67457 pCell = findCell(pPage, pPage->nCell-1);
67458 pStop = &pCell[9];
67459 while( (*(pCell++)&0x80) && pCell<pStop );
67460 pStop = &pCell[9];
67461 while( ((*(pOut++) = *(pCell++))&0x80) && pCell<pStop );
68140 u8 *pCell = b.apCell[i];
68159 || !SQLITE_WITHIN(pCell,aOld,&aOld[usableSize])
68162 ptrmapPut(pBt, get4byte(pCell), PTRMAP_BTREE, pNew->pgno, &rc);
68165 ptrmapPutOvflPtr(pNew, pCell, &rc);
68174 u8 *pCell;
68182 pCell = b.apCell[j];
68186 memcpy(&pNew->aData[8], pCell, 4);
68196 pCell = pTemp;
68197 sz = 4 + putVarint(&pCell[4], info.nKey);
68200 pCell -= 4;
68214 sz = pParent->xCellSize(pParent, pCell);
68220 insertCell(pParent, nxDiv+i, pCell, sz, pTemp, pNew->pgno, &rc);
68811 unsigned char *pCell; /* Pointer to cell to delete */
68831 pCell = findCell(pPage, iCellIdx);
68844 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)
68886 rc = clearCell(pPage, pCell, &info);
68906 pCell = findCell(pLeaf, pLeaf->nCell-1);
68907 if( pCell<&pLeaf->aData[4] ) return SQLITE_CORRUPT_BKPT;
68908 nCell = pLeaf->xCellSize(pLeaf, pCell);
68914 insertCell(pPage, iCellIdx, pCell-4, nCell+4, pTmp, n, &rc);
69144 unsigned char *pCell;
69162 pCell = findCell(pPage, i);
69164 rc = clearDatabasePage(pBt, get4byte(pCell), 1, pnChange);
69167 rc = clearCell(pPage, pCell, &info);
69759 u8 *pCell; /* Cell content */
69849 pCell = &data[pc];
69850 pPage->xParseCell(pPage, pCell, &info);
69872 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
69883 pgno = get4byte(pCell);
167804 RtreeCell *pCell, /* The cell to write */
167809 p += writeInt64(p, pCell->iRowid);
167811 p += writeCoord(p, &pCell->aCoord[ii]);
167837 RtreeCell *pCell /* The cell to be inserted */
167847 nodeOverwriteCell(pRtree, pNode, pCell, nCell);
167940 RtreeCell *pCell /* OUT: Write the cell contents here */
167945 pCell->iRowid = nodeGetRowid(pRtree, pNode, iCell);
167947 pCoord = pCell->aCoord;
169059 static RtreeDValue cellGrowth(Rtree *pRtree, RtreeCell *p, RtreeCell *pCell){
169064 cellUnion(pRtree, &cell, pCell);
169102 RtreeCell *pCell, /* Cell to insert into rtree */
169133 growth = cellGrowth(pRtree, &cell, pCell);
169163 RtreeCell *pCell /* This cell was just inserted */
169176 if( !cellContains(pRtree, &cell, pCell) ){
169177 cellUnion(pRtree, &cell, pCell);
169439 RtreeCell *pCell = &aCell[aaSorted[iBestDim][ii]];
169440 nodeInsertCell(pRtree, pTarget, pCell);
169441 cellUnion(pRtree, pBbox, pCell);
169471 RtreeCell *pCell,
169502 memcpy(&aCell[nCell], pCell, sizeof(RtreeCell));
169569 if( iRowid==pCell->iRowid ){
169585 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
169757 RtreeCell *pCell,
169794 memcpy(&aCell[ii], pCell, sizeof(RtreeCell));
169823 if( p->iRowid==pCell->iRowid ){
169862 RtreeCell *pCell,
169867 RtreeNode *pChild = nodeHashLookup(pRtree, pCell->iRowid);
169874 if( nodeInsertCell(pRtree, pNode, pCell) ){
169876 rc = SplitNode(pRtree, pNode, pCell, iHeight);
169879 rc = Reinsert(pRtree, pNode, pCell, iHeight);
169882 rc = AdjustTree(pRtree, pNode, pCell);
169885 rc = rowidWrite(pRtree, pCell->iRowid, pNode->iNode);
169887 rc = parentWrite(pRtree, pCell->iRowid, pNode->iNode);
170900 u8 *pCell, /* Pointer to cell coordinates */
170908 readCoord(&pCell[4*2*i], &c1);
170909 readCoord(&pCell[4*(2*i + 1)], &c2);
170979 u8 *pCell = &aNode[4 + i*(8 + pCheck->nDim*2*4)];
170980 i64 iVal = readInt64(pCell);
170981 rtreeCheckCellCoord(pCheck, iNode, i, &pCell[8], aParent);
170985 rtreeCheckNode(pCheck, iDepth-1, &pCell[8], iVal);
178034 StatCell *pCell = &p->aCell[i];
178038 pCell->iChildPg = sqlite3Get4byte(&aData[iOff]);
178053 pCell->nLocal = nLocal;
178060 pCell->nLastOvfl = (nPayload-nLocal) - (nOvfl-1) * (nUsable-4);
178061 pCell->nOvfl = nOvfl;
178062 pCell->aOvfl = sqlite3_malloc64(sizeof(u32)*nOvfl);
178063 if( pCell->aOvfl==0 ) return SQLITE_NOMEM_BKPT;
178064 pCell->aOvfl[0] = sqlite3Get4byte(&aData[iOff+nLocal]);
178067 u32 iPrev = pCell->aOvfl[j-1];
178074 pCell->aOvfl[j] = sqlite3Get4byte(sqlite3PagerGetData(pPg));
178153 StatCell *pCell = &p->aCell[p->iCell];
178154 if( pCell->iOvfl<pCell->nOvfl ){
178161 pCsr->iPageno = pCell->aOvfl[pCell->iOvfl];
178166 "%s%.3x+%.6x", p->zPath, p->iCell, pCell->iOvfl
178168 if( pCell->iOvfl<pCell->nOvfl-1 ){
178172 pCsr->nPayload = pCell->nLastOvfl;
178175 pCell->iOvfl++;