• Home
  • Raw
  • Download

Lines Matching refs:pCell

55529   u8 *pCell,              /* Pointer to the cell text. */
55555 pInfo->iOverflow = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell);
55575 u8 *pCell, /* Pointer to the cell text. */
55585 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
55594 u8 *pCell, /* Pointer to the cell text. */
55607 pIter = pCell;
55655 pInfo->nSize = nPayload + (u16)(pIter - pCell);
55660 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
55665 u8 *pCell, /* Pointer to the cell text. */
55675 pIter = pCell + pPage->childPtrSize;
55694 pInfo->nSize = nPayload + (u16)(pIter - pCell);
55699 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
55722 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
55723 u8 *pIter = pCell + pPage->childPtrSize; /* For looping over bytes of pCell */
55733 pPage->xParseCell(pPage, pCell, &debuginfo);
55756 nSize += (u32)(pIter - pCell);
55766 nSize += 4 + (u16)(pIter - pCell);
55771 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
55772 u8 *pIter = pCell + 4; /* For looping over bytes of pCell */
55781 pPage->xParseCell(pPage, pCell, &debuginfo);
55789 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
55790 return (u16)(pIter - pCell);
55808 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
55811 assert( pCell!=0 );
55812 pPage->xParseCell(pPage, pCell, &info);
55814 Pgno ovfl = get4byte(&pCell[info.iOverflow]);
57778 u8 *pCell = findCell(pPage, i);
57780 ptrmapPutOvflPtr(pPage, pCell, &rc);
57783 Pgno childPgno = get4byte(pCell);
57832 u8 *pCell = findCell(pPage, i);
57835 pPage->xParseCell(pPage, pCell, &info);
57837 && pCell+info.iOverflow+3<=pPage->aData+pPage->maskPage
57838 && iFrom==get4byte(&pCell[info.iOverflow])
57840 put4byte(&pCell[info.iOverflow], iTo);
57844 if( get4byte(pCell)==iFrom ){
57845 put4byte(pCell, iTo);
59597 u8 *pCell; /* Pointer to current cell in pPage */
59615 pCell = findCellPastPtr(pPage, idx);
59617 while( 0x80 <= *(pCell++) ){
59618 if( pCell>=pPage->aDataEnd ) return SQLITE_CORRUPT_BKPT;
59621 getVarint(pCell, (u64*)&nCellKey);
59648 pCell = findCellPastPtr(pPage, idx);
59658 nCell = pCell[0];
59663 testcase( pCell+nCell+1==pPage->aDataEnd );
59664 c = xRecordCompare(nCell, (void*)&pCell[1], pIdxKey);
59665 }else if( !(pCell[1] & 0x80)
59666 && (nCell = ((nCell&0x7f)<<7) + pCell[1])<=pPage->maxLocal
59670 testcase( pCell+nCell+2==pPage->aDataEnd );
59671 c = xRecordCompare(nCell, (void*)&pCell[2], pIdxKey);
59683 u8 * const pCellBody = pCell - pPage->childPtrSize;
60463 unsigned char *pCell, /* First byte of the Cell */
60474 pPage->xParseCell(pPage, pCell, &info);
60479 if( pCell+info.iOverflow+3 > pPage->aData+pPage->maskPage ){
60482 ovflPgno = get4byte(&pCell[info.iOverflow]);
60544 unsigned char *pCell, /* Complete text of the cell */
60566 assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize]
60573 nHeader += putVarint32(&pCell[nHeader], nPayload);
60578 nHeader += putVarint(&pCell[nHeader], *(u64*)&nKey);
60598 pPrior = pCell;
60607 pPrior = &pCell[nHeader+n];
60609 pPayload = &pCell[nHeader];
60626 pPage->xParseCell(pPage, pCell, &info);
60627 assert( nHeader=(int)(info.pPayload - pCell) );
60631 assert( pPrior == &pCell[info.iOverflow] );
60788 u8 *pCell, /* Content of the new cell */
60812 assert( sz==pPage->xCellSize(pPage, pCell) || (sz==8 && iChild>0) );
60815 memcpy(pTemp, pCell, sz);
60816 pCell = pTemp;
60819 put4byte(pCell, iChild);
60823 pPage->apOvfl[j] = pCell;
60850 memcpy(&data[idx], pCell, sz);
60866 ptrmapPutOvflPtr(pPage, pCell, pRC);
60951 u8 *pCell = apCell[i];
60952 if( pCell>aData && pCell<pEnd ){
60953 pCell = &pTmp[pCell - aData];
60959 memcpy(pData, pCell, szCell[i]);
60960 assert( szCell[i]==pPg->xCellSize(pPg, pCell) || CORRUPT_DB );
60961 testcase( szCell[i]!=pPg->xCellSize(pPg,pCell) );
61062 u8 *pCell = pCArray->apCell[i];
61063 if( pCell>=pStart && pCell<pEnd ){
61069 if( pFree!=(pCell + sz) ){
61074 pFree = pCell;
61078 pFree = pCell;
61180 u8 *pCell = pCArray->apCell[i+iNew];
61182 if( pCell>=aData && pCell<&aData[pPg->pBt->usableSize] ){
61183 pCell = &pTmp[pCell - aData];
61185 assert( 0==memcmp(pCell, &aData[iOff],
61259 u8 *pCell = pPage->apOvfl[0];
61260 u16 szCell = pPage->xCellSize(pPage, pCell);
61266 rc = rebuildPage(pNew, 1, &pCell, &szCell);
61282 ptrmapPutOvflPtr(pNew, pCell, &rc);
61299 pCell = findCell(pPage, pPage->nCell-1);
61300 pStop = &pCell[9];
61301 while( (*(pCell++)&0x80) && pCell<pStop );
61302 pStop = &pCell[9];
61303 while( ((*(pOut++) = *(pCell++))&0x80) && pCell<pStop );
61987 u8 *pCell = b.apCell[i];
62006 || pCell<aOld
62007 || pCell>=&aOld[usableSize]
62010 ptrmapPut(pBt, get4byte(pCell), PTRMAP_BTREE, pNew->pgno, &rc);
62013 ptrmapPutOvflPtr(pNew, pCell, &rc);
62022 u8 *pCell;
62030 pCell = b.apCell[j];
62034 memcpy(&pNew->aData[8], pCell, 4);
62044 pCell = pTemp;
62045 sz = 4 + putVarint(&pCell[4], info.nKey);
62048 pCell -= 4;
62062 sz = pParent->xCellSize(pParent, pCell);
62068 insertCell(pParent, nxDiv+i, pCell, sz, pTemp, pNew->pgno, &rc);
62590 unsigned char *pCell; /* Pointer to cell to delete */
62608 pCell = findCell(pPage, iCellIdx);
62647 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)
62663 rc = clearCell(pPage, pCell, &szCell);
62678 pCell = findCell(pLeaf, pLeaf->nCell-1);
62679 if( pCell<&pLeaf->aData[4] ) return SQLITE_CORRUPT_BKPT;
62680 nCell = pLeaf->xCellSize(pLeaf, pCell);
62685 insertCell(pPage, iCellIdx, pCell-4, nCell+4, pTmp, n, &rc);
62909 unsigned char *pCell;
62927 pCell = findCell(pPage, i);
62929 rc = clearDatabasePage(pBt, get4byte(pCell), 1, pnChange);
62932 rc = clearCell(pPage, pCell, &szCell);
63545 u8 *pCell; /* Cell content */
63635 pCell = &data[pc];
63636 pPage->xParseCell(pPage, pCell, &info);
63657 pgnoOvfl = get4byte(&pCell[info.iOverflow]);
63668 pgno = get4byte(pCell);
154668 RtreeCell *pCell, /* The cell to write */
154673 p += writeInt64(p, pCell->iRowid);
154675 p += writeCoord(p, &pCell->aCoord[ii]);
154701 RtreeCell *pCell /* The cell to be inserted */
154711 nodeOverwriteCell(pRtree, pNode, pCell, nCell);
154804 RtreeCell *pCell /* OUT: Write the cell contents here */
154809 pCell->iRowid = nodeGetRowid(pRtree, pNode, iCell);
154811 pCoord = pCell->aCoord;
155885 static RtreeDValue cellGrowth(Rtree *pRtree, RtreeCell *p, RtreeCell *pCell){
155890 cellUnion(pRtree, &cell, pCell);
155928 RtreeCell *pCell, /* Cell to insert into rtree */
155959 growth = cellGrowth(pRtree, &cell, pCell);
155989 RtreeCell *pCell /* This cell was just inserted */
156002 if( !cellContains(pRtree, &cell, pCell) ){
156003 cellUnion(pRtree, &cell, pCell);
156265 RtreeCell *pCell = &aCell[aaSorted[iBestDim][ii]];
156266 nodeInsertCell(pRtree, pTarget, pCell);
156267 cellUnion(pRtree, pBbox, pCell);
156297 RtreeCell *pCell,
156328 memcpy(&aCell[nCell], pCell, sizeof(RtreeCell));
156395 if( iRowid==pCell->iRowid ){
156411 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
156583 RtreeCell *pCell,
156620 memcpy(&aCell[ii], pCell, sizeof(RtreeCell));
156649 if( p->iRowid==pCell->iRowid ){
156688 RtreeCell *pCell,
156693 RtreeNode *pChild = nodeHashLookup(pRtree, pCell->iRowid);
156700 if( nodeInsertCell(pRtree, pNode, pCell) ){
156702 rc = SplitNode(pRtree, pNode, pCell, iHeight);
156705 rc = Reinsert(pRtree, pNode, pCell, iHeight);
156708 rc = AdjustTree(pRtree, pNode, pCell);
156711 rc = rowidWrite(pRtree, pCell->iRowid, pNode->iNode);
156713 rc = parentWrite(pRtree, pCell->iRowid, pNode->iNode);
163234 StatCell *pCell = &p->aCell[i];
163238 pCell->iChildPg = sqlite3Get4byte(&aData[iOff]);
163253 pCell->nLocal = nLocal;
163260 pCell->nLastOvfl = (nPayload-nLocal) - (nOvfl-1) * (nUsable-4);
163261 pCell->nOvfl = nOvfl;
163262 pCell->aOvfl = sqlite3_malloc64(sizeof(u32)*nOvfl);
163263 if( pCell->aOvfl==0 ) return SQLITE_NOMEM;
163264 pCell->aOvfl[0] = sqlite3Get4byte(&aData[iOff+nLocal]);
163267 u32 iPrev = pCell->aOvfl[j-1];
163274 pCell->aOvfl[j] = sqlite3Get4byte(sqlite3PagerGetData(pPg));
163353 StatCell *pCell = &p->aCell[p->iCell];
163354 if( pCell->iOvfl<pCell->nOvfl ){
163361 pCsr->iPageno = pCell->aOvfl[pCell->iOvfl];
163366 "%s%.3x+%.6x", p->zPath, p->iCell, pCell->iOvfl
163368 if( pCell->iOvfl<pCell->nOvfl-1 ){
163372 pCsr->nPayload = pCell->nLastOvfl;
163375 pCell->iOvfl++;