Lines Matching refs:pCell

54781   u8 *pCell,              /* Pointer to the cell text. */
54807 pInfo->iOverflow = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell);
54827 u8 *pCell, /* Pointer to the cell text. */
54837 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
54846 u8 *pCell, /* Pointer to the cell text. */
54859 pIter = pCell;
54907 pInfo->nSize = nPayload + (u16)(pIter - pCell);
54912 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
54917 u8 *pCell, /* Pointer to the cell text. */
54927 pIter = pCell + pPage->childPtrSize;
54946 pInfo->nSize = nPayload + (u16)(pIter - pCell);
54951 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
54974 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
54975 u8 *pIter = pCell + pPage->childPtrSize; /* For looping over bytes of pCell */
54985 pPage->xParseCell(pPage, pCell, &debuginfo);
55008 nSize += (u32)(pIter - pCell);
55018 nSize += 4 + (u16)(pIter - pCell);
55023 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
55024 u8 *pIter = pCell + 4; /* For looping over bytes of pCell */
55033 pPage->xParseCell(pPage, pCell, &debuginfo);
55041 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
55042 return (u16)(pIter - pCell);
55060 static void ptrmapPutOvflPtr(MemPage *pPage, u8 *pCell, int *pRC){
55063 assert( pCell!=0 );
55064 pPage->xParseCell(pPage, pCell, &info);
55066 Pgno ovfl = get4byte(&pCell[info.iOverflow]);
57030 u8 *pCell = findCell(pPage, i);
57032 ptrmapPutOvflPtr(pPage, pCell, &rc);
57035 Pgno childPgno = get4byte(pCell);
57084 u8 *pCell = findCell(pPage, i);
57087 pPage->xParseCell(pPage, pCell, &info);
57089 && pCell+info.iOverflow+3<=pPage->aData+pPage->maskPage
57090 && iFrom==get4byte(&pCell[info.iOverflow])
57092 put4byte(&pCell[info.iOverflow], iTo);
57096 if( get4byte(pCell)==iFrom ){
57097 put4byte(pCell, iTo);
58849 u8 *pCell; /* Pointer to current cell in pPage */
58867 pCell = findCellPastPtr(pPage, idx);
58869 while( 0x80 <= *(pCell++) ){
58870 if( pCell>=pPage->aDataEnd ) return SQLITE_CORRUPT_BKPT;
58873 getVarint(pCell, (u64*)&nCellKey);
58900 pCell = findCellPastPtr(pPage, idx);
58910 nCell = pCell[0];
58915 testcase( pCell+nCell+1==pPage->aDataEnd );
58916 c = xRecordCompare(nCell, (void*)&pCell[1], pIdxKey);
58917 }else if( !(pCell[1] & 0x80)
58918 && (nCell = ((nCell&0x7f)<<7) + pCell[1])<=pPage->maxLocal
58922 testcase( pCell+nCell+2==pPage->aDataEnd );
58923 c = xRecordCompare(nCell, (void*)&pCell[2], pIdxKey);
58935 u8 * const pCellBody = pCell - pPage->childPtrSize;
59715 unsigned char *pCell, /* First byte of the Cell */
59726 pPage->xParseCell(pPage, pCell, &info);
59731 if( pCell+info.iOverflow+3 > pPage->aData+pPage->maskPage ){
59734 ovflPgno = get4byte(&pCell[info.iOverflow]);
59796 unsigned char *pCell, /* Complete text of the cell */
59818 assert( pCell<pPage->aData || pCell>=&pPage->aData[pBt->pageSize]
59825 nHeader += putVarint32(&pCell[nHeader], nPayload);
59830 nHeader += putVarint(&pCell[nHeader], *(u64*)&nKey);
59850 pPrior = pCell;
59859 pPrior = &pCell[nHeader+n];
59861 pPayload = &pCell[nHeader];
59878 pPage->xParseCell(pPage, pCell, &info);
59879 assert( nHeader=(int)(info.pPayload - pCell) );
59883 assert( pPrior == &pCell[info.iOverflow] );
60040 u8 *pCell, /* Content of the new cell */
60064 assert( sz==pPage->xCellSize(pPage, pCell) || (sz==8 && iChild>0) );
60067 memcpy(pTemp, pCell, sz);
60068 pCell = pTemp;
60071 put4byte(pCell, iChild);
60075 pPage->apOvfl[j] = pCell;
60102 memcpy(&data[idx], pCell, sz);
60118 ptrmapPutOvflPtr(pPage, pCell, pRC);
60203 u8 *pCell = apCell[i];
60204 if( pCell>aData && pCell<pEnd ){
60205 pCell = &pTmp[pCell - aData];
60211 memcpy(pData, pCell, szCell[i]);
60212 assert( szCell[i]==pPg->xCellSize(pPg, pCell) || CORRUPT_DB );
60213 testcase( szCell[i]!=pPg->xCellSize(pPg,pCell) );
60308 u8 *pCell = pCArray->apCell[i];
60309 if( pCell>=pStart && pCell<pEnd ){
60315 if( pFree!=(pCell + sz) ){
60320 pFree = pCell;
60324 pFree = pCell;
60426 u8 *pCell = pCArray->apCell[i+iNew];
60428 if( pCell>=aData && pCell<&aData[pPg->pBt->usableSize] ){
60429 pCell = &pTmp[pCell - aData];
60431 assert( 0==memcmp(pCell, &aData[iOff],
60505 u8 *pCell = pPage->apOvfl[0];
60506 u16 szCell = pPage->xCellSize(pPage, pCell);
60512 rc = rebuildPage(pNew, 1, &pCell, &szCell);
60528 ptrmapPutOvflPtr(pNew, pCell, &rc);
60545 pCell = findCell(pPage, pPage->nCell-1);
60546 pStop = &pCell[9];
60547 while( (*(pCell++)&0x80) && pCell<pStop );
60548 pStop = &pCell[9];
60549 while( ((*(pOut++) = *(pCell++))&0x80) && pCell<pStop );
61233 u8 *pCell = b.apCell[i];
61252 || pCell<aOld
61253 || pCell>=&aOld[usableSize]
61256 ptrmapPut(pBt, get4byte(pCell), PTRMAP_BTREE, pNew->pgno, &rc);
61259 ptrmapPutOvflPtr(pNew, pCell, &rc);
61268 u8 *pCell;
61276 pCell = b.apCell[j];
61280 memcpy(&pNew->aData[8], pCell, 4);
61290 pCell = pTemp;
61291 sz = 4 + putVarint(&pCell[4], info.nKey);
61294 pCell -= 4;
61308 sz = pParent->xCellSize(pParent, pCell);
61314 insertCell(pParent, nxDiv+i, pCell, sz, pTemp, pNew->pgno, &rc);
61831 unsigned char *pCell; /* Pointer to cell to delete */
61848 pCell = findCell(pPage, iCellIdx);
61881 rc = clearCell(pPage, pCell, &szCell);
61896 pCell = findCell(pLeaf, pLeaf->nCell-1);
61897 if( pCell<&pLeaf->aData[4] ) return SQLITE_CORRUPT_BKPT;
61898 nCell = pLeaf->xCellSize(pLeaf, pCell);
61903 insertCell(pPage, iCellIdx, pCell-4, nCell+4, pTmp, n, &rc);
62111 unsigned char *pCell;
62129 pCell = findCell(pPage, i);
62131 rc = clearDatabasePage(pBt, get4byte(pCell), 1, pnChange);
62134 rc = clearCell(pPage, pCell, &szCell);
62745 u8 *pCell; /* Cell content */
62835 pCell = &data[pc];
62836 pPage->xParseCell(pPage, pCell, &info);
62857 pgnoOvfl = get4byte(&pCell[info.iOverflow]);
62868 pgno = get4byte(pCell);
153192 RtreeCell *pCell, /* The cell to write */
153197 p += writeInt64(p, pCell->iRowid);
153199 p += writeCoord(p, &pCell->aCoord[ii]);
153225 RtreeCell *pCell /* The cell to be inserted */
153235 nodeOverwriteCell(pRtree, pNode, pCell, nCell);
153328 RtreeCell *pCell /* OUT: Write the cell contents here */
153333 pCell->iRowid = nodeGetRowid(pRtree, pNode, iCell);
153335 pCoord = pCell->aCoord;
154409 static RtreeDValue cellGrowth(Rtree *pRtree, RtreeCell *p, RtreeCell *pCell){
154414 cellUnion(pRtree, &cell, pCell);
154452 RtreeCell *pCell, /* Cell to insert into rtree */
154483 growth = cellGrowth(pRtree, &cell, pCell);
154513 RtreeCell *pCell /* This cell was just inserted */
154526 if( !cellContains(pRtree, &cell, pCell) ){
154527 cellUnion(pRtree, &cell, pCell);
154789 RtreeCell *pCell = &aCell[aaSorted[iBestDim][ii]];
154790 nodeInsertCell(pRtree, pTarget, pCell);
154791 cellUnion(pRtree, pBbox, pCell);
154821 RtreeCell *pCell,
154852 memcpy(&aCell[nCell], pCell, sizeof(RtreeCell));
154919 if( iRowid==pCell->iRowid ){
154935 rc = updateMapping(pRtree, pCell->iRowid, pLeft, iHeight);
155107 RtreeCell *pCell,
155144 memcpy(&aCell[ii], pCell, sizeof(RtreeCell));
155173 if( p->iRowid==pCell->iRowid ){
155212 RtreeCell *pCell,
155217 RtreeNode *pChild = nodeHashLookup(pRtree, pCell->iRowid);
155224 if( nodeInsertCell(pRtree, pNode, pCell) ){
155226 rc = SplitNode(pRtree, pNode, pCell, iHeight);
155229 rc = Reinsert(pRtree, pNode, pCell, iHeight);
155232 rc = AdjustTree(pRtree, pNode, pCell);
155235 rc = rowidWrite(pRtree, pCell->iRowid, pNode->iNode);
155237 rc = parentWrite(pRtree, pCell->iRowid, pNode->iNode);
161314 StatCell *pCell = &p->aCell[i];
161318 pCell->iChildPg = sqlite3Get4byte(&aData[iOff]);
161333 pCell->nLocal = nLocal;
161340 pCell->nLastOvfl = (nPayload-nLocal) - (nOvfl-1) * (nUsable-4);
161341 pCell->nOvfl = nOvfl;
161342 pCell->aOvfl = sqlite3_malloc64(sizeof(u32)*nOvfl);
161343 if( pCell->aOvfl==0 ) return SQLITE_NOMEM;
161344 pCell->aOvfl[0] = sqlite3Get4byte(&aData[iOff+nLocal]);
161347 u32 iPrev = pCell->aOvfl[j-1];
161354 pCell->aOvfl[j] = sqlite3Get4byte(sqlite3PagerGetData(pPg));
161433 StatCell *pCell = &p->aCell[p->iCell];
161434 if( pCell->iOvfl<pCell->nOvfl ){
161441 pCsr->iPageno = pCell->aOvfl[pCell->iOvfl];
161446 "%s%.3x+%.6x", p->zPath, p->iCell, pCell->iOvfl
161448 if( pCell->iOvfl<pCell->nOvfl-1 ){
161452 pCsr->nPayload = pCell->nLastOvfl;
161455 pCell->iOvfl++;