Lines Matching refs:pCell
4309 u8 *pCell,
4327 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
4332 u8 *pCell,
4341 pInfo->nSize = 4 + sqlite3GetVarint(&pCell[4], (u64*)&pInfo->nKey);
4349 u8 *pCell,
4360 pIter = pCell;
4408 pInfo->nSize = nPayload + (u16)(pIter - pCell);
4412 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
4417 u8 *pCell,
4426 pIter = pCell + pPage->childPtrSize;
4445 pInfo->nSize = nPayload + (u16)(pIter - pCell);
4449 btreeParseCellAdjustSizeForOverflow(pPage, pCell, pInfo);
4460 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
4461 u8 *pIter = pCell + pPage->childPtrSize;
4484 nSize += (u32)(pIter - pCell);
4494 nSize += 4 + (u16)(pIter - pCell);
4499 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){
4500 u8 *pIter = pCell + 4;
4509 assert( debuginfo.nSize==(u16)(pIter - pCell) || (sqlite3Config.neverCorrupt==0) );
4510 return (u16)(pIter - pCell);
4513 static void ptrmapPutOvflPtr(MemPage *pPage, MemPage *pSrc, u8 *pCell,int *pRC){
4516 assert( pCell!=0 );
4517 pPage->xParseCell(pPage, pCell, &info);
4520 …if( (((uptr)(pSrc->aDataEnd)>=(uptr)(pCell))&&((uptr)(pSrc->aDataEnd)<(uptr)(pCell+info.nLocal))) …
4525 ovfl = sqlite3Get4byte(&pCell[info.nSize-4]);
6257 …u8 *pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
6259 ptrmapPutOvflPtr(pPage, pPage, pCell, &rc);
6262 Pgno childPgno = sqlite3Get4byte(pCell);
6294 …u8 *pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
6297 pPage->xParseCell(pPage, pCell, &info);
6299 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
6302 if( iFrom==sqlite3Get4byte(pCell+info.nSize-4) ){
6303 sqlite3Put4byte(pCell+info.nSize-4, iTo);
6308 if( sqlite3Get4byte(pCell)==iFrom ){
6309 sqlite3Put4byte(pCell, iTo);
7547 u8 *pCell;
7565 …pCell = ((pPage)->aDataOfst + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
7567 while( 0x80 <= *(pCell++) ){
7568 if( pCell>=pPage->aDataEnd ){
7573 sqlite3GetVarint(pCell, (u64*)&nCellKey);
7600 …pCell = ((pPage)->aDataOfst + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*…
7602 nCell = pCell[0];
7608 c = xRecordCompare(nCell, (void*)&pCell[1], pIdxKey);
7609 }else if( !(pCell[1] & 0x80)
7610 && (nCell = ((nCell&0x7f)<<7) + pCell[1])<=pPage->maxLocal
7615 c = xRecordCompare(nCell, (void*)&pCell[2], pIdxKey);
7619 u8 * const pCellBody = pCell - pPage->childPtrSize;
8288 unsigned char *pCell,
8298 pPage->xParseCell(pPage, pCell, pInfo);
8304 if( pCell + pInfo->nSize > pPage->aDataEnd ){
8308 ovflPgno = sqlite3Get4byte(pCell + pInfo->nSize - 4);
8350 unsigned char *pCell,
8369 assert( pCell<pPage->aData || pCell>=&pPage->aData[pPage->pBt->pageSize]
8379 … += (u8)(((u32)(nPayload)<(u32)0x80)?(*(&pCell[nHeader])=(unsigned char)(nPayload)),1: sqlite3PutV…
8380 nHeader += sqlite3PutVarint(&pCell[nHeader], *(u64*)&pX->nKey);
8385 … += (u8)(((u32)(nPayload)<(u32)0x80)?(*(&pCell[nHeader])=(unsigned char)(nPayload)),1: sqlite3PutV…
8389 pPayload = &pCell[nHeader];
8415 pPrior = &pCell[nHeader+n];
8541 u8 *pCell,
8564 assert( sz==pPage->xCellSize(pPage, pCell) || (sz==8 && iChild>0) );
8568 memcpy(pTemp, pCell, sz);
8569 pCell = pTemp;
8572 sqlite3Put4byte(pCell, iChild);
8579 pPage->apOvfl[j] = pCell;
8612 memcpy(&data[idx+4], pCell+4, sz-4);
8615 memcpy(&data[idx], pCell, sz);
8629 ptrmapPutOvflPtr(pPage, pPage, pCell, pRC);
8708 u8 *pCell = pCArray->apCell[i];
8711 if( (((uptr)(pCell)>=(uptr)(aData))&&((uptr)(pCell)<(uptr)(pEnd))) ){
8712 if( ((uptr)(pCell+sz))>(uptr)pEnd ) return sqlite3CorruptError(6916);
8713 pCell = &pTmp[pCell - aData];
8714 }else if( (uptr)(pCell+sz)>(uptr)pSrcEnd
8715 && (uptr)(pCell)<(uptr)pSrcEnd
8724 memcpy(pData, pCell, sz);
8725 assert( sz==pPg->xCellSize(pPg, pCell) || (sqlite3Config.neverCorrupt==0) );
8817 u8 *pCell = pCArray->apCell[i];
8818 if( (((uptr)(pCell)>=(uptr)(pStart))&&((uptr)(pCell)<(uptr)(pEnd))) ){
8824 if( pFree!=(pCell + sz) ){
8829 pFree = pCell;
8833 pFree = pCell;
8959 u8 *pCell = pPage->apOvfl[0];
8960 u16 szCell = pPage->xCellSize(pPage, pCell);
8969 b.apCell = &pCell;
8983 ptrmapPutOvflPtr(pNew, pNew, pCell, &rc);
8987 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(pPa…
8988 pStop = &pCell[9];
8989 while( (*(pCell++)&0x80) && pCell<pStop );
8990 pStop = &pCell[9];
8991 while( ((*(pOut++) = *(pCell++))&0x80) && pCell<pStop );
9464 u8 *pCell = b.apCell[i];
9485 || !(((uptr)(pCell)>=(uptr)(pOld->aData))&&((uptr)(pCell)<(uptr)(pOld->aDataEnd)))
9488 ptrmapPut(pBt, sqlite3Get4byte(pCell), 5, pNew->pgno, &rc);
9491 ptrmapPutOvflPtr(pNew, pOld, pCell, &rc);
9500 u8 *pCell;
9508 pCell = b.apCell[j];
9512 memcpy(&pNew->aData[8], pCell, 4);
9522 pCell = pTemp;
9523 sz = 4 + sqlite3PutVarint(&pCell[4], info.nKey);
9526 pCell -= 4;
9530 sz = pParent->xCellSize(pParent, pCell);
9536 insertCell(pParent, nxDiv+i, pCell, sz, pTemp, pNew->pgno, &rc);
10068 unsigned char *pCell;
10091 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(iCe…
10096 || (pPage->nFree+cellSizePtr(pPage,pCell)+2)>(int)(pBt->usableSize*2/3)
10132 rc = clearCell(pPage, pCell, &info);
10156 …pCell = ((pLeaf)->aData + ((pLeaf)->maskPage & __builtin_bswap16(*(u16*)(&(pLeaf)->aCellIdx[2*(pLe…
10157 if( pCell<&pLeaf->aData[4] ) return sqlite3CorruptError(8929);
10158 nCell = pLeaf->xCellSize(pLeaf, pCell);
10164 insertCell(pPage, iCellIdx, pCell-4, nCell+4, pTmp, n, &rc);
10368 unsigned char *pCell;
10386 …pCell = ((pPage)->aData + ((pPage)->maskPage & __builtin_bswap16(*(u16*)(&(pPage)->aCellIdx[2*(i)]…
10388 rc = clearDatabasePage(pBt, sqlite3Get4byte(pCell), 1, pnChange);
10391 rc = clearCell(pPage, pCell, &info);
10847 u8 *pCell;
10942 pCell = &data[pc];
10943 pPage->xParseCell(pPage, pCell, &info);
10965 pgnoOvfl = sqlite3Get4byte(&pCell[info.nSize - 4]);
10976 pgno = sqlite3Get4byte(pCell);