Lines Matching refs:u8

288 static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock){  in querySharedCacheTableLock()
360 static int setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock){ in setSharedCacheTableLock()
688 memset(((u8*)pKey)+pCur->nKey, 0, 9+8); in saveCursorKey()
896 return CURSOR_VALID != *(u8*)pCur; in sqlite3BtreeCursorHasMoved()
905 static u8 fakeCursor = CURSOR_VALID; in sqlite3BtreeFakeValidCursor()
995 static void ptrmapPut(BtShared *pBt, Pgno key, u8 eType, Pgno parent, int *pRC){ in ptrmapPut()
997 u8 *pPtrmap; /* The pointer map data */ in ptrmapPut()
1032 pPtrmap = (u8 *)sqlite3PagerGetData(pDbPage); in ptrmapPut()
1054 static int ptrmapGet(BtShared *pBt, Pgno key, u8 *pEType, Pgno *pPgno){ in ptrmapGet()
1057 u8 *pPtrmap; /* Pointer map page data */ in ptrmapGet()
1068 pPtrmap = (u8 *)sqlite3PagerGetData(pDbPage); in ptrmapGet()
1115 u8 *pCell, /* Pointer to the cell text. */ in btreeParseCellAdjustSizeForOverflow()
1178 u8 *pCell, /* Pointer to the cell text. */ in btreeParseCellPtrNoPayload()
1195 u8 *pCell, /* Pointer to the cell text. */ in btreeParseCellPtr()
1198 u8 *pIter; /* For scanning through pCell */ in btreeParseCellPtr()
1216 u8 *pEnd = &pIter[8]; in btreeParseCellPtr()
1233 u8 x; in btreeParseCellPtr()
1277 u8 *pCell, /* Pointer to the cell text. */ in btreeParseCellPtrIndex()
1280 u8 *pIter; /* For scanning through pCell */ in btreeParseCellPtrIndex()
1289 u8 *pEnd = &pIter[8]; in btreeParseCellPtrIndex()
1333 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){ in cellSizePtr()
1334 u8 *pIter = pCell + pPage->childPtrSize; /* For looping over bytes of pCell */ in cellSizePtr()
1335 u8 *pEnd; /* End mark for a varint */ in cellSizePtr()
1374 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){ in cellSizePtrNoPayload()
1375 u8 *pIter = pCell + 4; /* For looping over bytes of pCell */ in cellSizePtrNoPayload()
1376 u8 *pEnd; /* End mark for a varint */ in cellSizePtrNoPayload()
1395 static u16 cellSizePtrTableLeaf(MemPage *pPage, u8 *pCell){ in cellSizePtrTableLeaf()
1396 u8 *pIter = pCell; /* For looping over bytes of pCell */ in cellSizePtrTableLeaf()
1397 u8 *pEnd; /* End mark for a varint */ in cellSizePtrTableLeaf()
1464 static void ptrmapPutOvflPtr(MemPage *pPage, MemPage *pSrc, u8 *pCell,int *pRC){ in ptrmapPutOvflPtr()
1536 u8 *pEnd = &data[cellOffset + nCell*2]; in defragmentPage()
1537 u8 *pAddr; in defragmentPage()
1575 u8 *pAddr; /* The i-th cell pointer */ in defragmentPage()
1629 static u8 *pageFindSlot(MemPage *pPg, int nByte, int *pRc){ in pageFindSlot()
1631 u8 * const aData = pPg->aData; /* Page data */ in pageFindSlot()
1633 u8 *pTmp = &aData[iAddr]; /* Temporary ptr into aData[] */ in pageFindSlot()
1657 aData[hdr+7] += (u8)x; in pageFindSlot()
1703 u8 * const data = pPage->aData; /* Local cache of pPage->aData */ in allocateSpace()
1706 u8 *pTmp; /* Temp ptr into data[] */ in allocateSpace()
1744 u8 *pSpace = pageFindSlot(pPage, nByte, &rc); in allocateSpace()
1802 u8 hdr; /* Page header size. 0 or 100 */ in freeSpace()
1803 u8 nFrag = 0; /* Reduction in fragmentation */ in freeSpace()
1808 u8 *pTmp; /* Temporary ptr into data[] */ in freeSpace()
1913 pPage->leaf = (u8)(flagByte>>3); assert( PTF_LEAF == 1<<3 ); in decodeFlags()
1968 u8 hdr; /* Offset to beginning of page header */ in btreeComputeFreeSpace()
1969 u8 *data; /* Equal to pPage->aData */ in btreeComputeFreeSpace()
2054 u8 *data; /* Equal to pPage->aData */ in btreeCellSizeCheck()
2090 u8 *data; /* Equal to pPage->aData */ in btreeInitPage()
2145 u8 hdr = pPage->hdrOffset; in zeroPage()
2442 u8 nReserve; /* Byte of unused space on each page */ in sqlite3BtreeOpen()
2586 pBt->openFlags = (u8)flags; in sqlite3BtreeOpen()
3098 u8 av = (u8)autoVacuum; in sqlite3BtreeSetAutoVacuum()
3140 static void setDefaultSyncFlag(BtShared *pBt, u8 safety_level){ in setDefaultSyncFlag()
3188 nPage = get4byte(28+(u8*)pPage1->aData); in lockBtree()
3190 if( nPage==0 || memcmp(24+(u8*)pPage1->aData, 92+(u8*)pPage1->aData,4)!=0 ){ in lockBtree()
3199 u8 *page1 = pPage1->aData; in lockBtree()
3337 pBt->max1bytePayload = (u8)pBt->maxLocal; in lockBtree()
3415 data[16] = (u8)((pBt->pageSize>>8)&0xff); in newDatabase()
3416 data[17] = (u8)((pBt->pageSize>>16)&0xff); in newDatabase()
3420 data[20] = (u8)(pBt->pageSize - pBt->usableSize); in newDatabase()
3680 u8 *pCell = findCell(pPage, i); in setChildPtrmaps()
3712 static int modifyPagePointer(MemPage *pPage, Pgno iFrom, Pgno iTo, u8 eType){ in modifyPagePointer()
3731 u8 *pCell = findCell(pPage, i); in modifyPagePointer()
3779 u8 eType, /* Pointer map 'type' entry for pDbPage */ in relocatePage()
3851 static int allocateBtreePage(BtShared *, MemPage **, Pgno *, Pgno, u8);
3878 u8 eType; in incrVacuumStep()
3913 u8 eMode = BTALLOC_ANY; /* Mode parameter for allocateBtreePage() */ in incrVacuumStep()
4845 u8 eType; in getOverflowPage()
5087 u8 aSave[4]; in accessPayload()
5088 u8 *aWrite = &pBuf[-4]; in accessPayload()
5632 u8 *pCell; /* Pointer to current cell in pPage */ in sqlite3BtreeTableMoveto()
5730 u8 *pCell = findCellPastPtr(pPage, idx); in indexCellCompare()
5876 u8 *pCell; /* Pointer to current cell in pPage */ in sqlite3BtreeIndexMoveto()
5926 u8 * const pCellBody = pCell - pPage->childPtrSize; in sqlite3BtreeIndexMoveto()
5945 memset(((u8*)pCellKey)+nCell,0,nOverrun); /* Fix uninit warnings */ in sqlite3BtreeIndexMoveto()
6021 u8 i; in sqlite3BtreeRowCountEst()
6244 u8 eMode /* BTALLOC_EXACT, BTALLOC_LT, or BTALLOC_ANY */ in allocateBtreePage()
6268 u8 searchList = 0; /* If the free-list must be searched for 'nearby' */ in allocateBtreePage()
6278 u8 eType; in allocateBtreePage()
6525 put4byte(28 + (u8*)pBt->pPage1->aData, pBt->nPage); in allocateBtreePage()
6806 const u8 *pSrc; in fillInCell()
6947 u8 eType = (pgnoPtrmap?PTRMAP_OVERFLOW2:PTRMAP_OVERFLOW1); in fillInCell()
6991 u8 *data; /* pPage->aData */ in dropCell()
6992 u8 *ptr; /* Used to move bytes around within data[] */ in dropCell()
7050 u8 *pCell, /* Content of the new cell */ in insertCell()
7052 u8 *pTemp, /* Temp storage space for pCell, if needed */ in insertCell()
7058 u8 *data; /* The content of the whole page */ in insertCell()
7059 u8 *pIns; /* The point in pPage->aCellIdx[] where no cell inserted */ in insertCell()
7226 u8 **apCell; /* All cells begin balanced */
7228 u8 *apEnd[NB*2]; /* MemPage.aDataEnd values */
7286 u8 * const aData = pPg->aData; /* Pointer to data for pPg */ in rebuildPage()
7288 u8 * const pEnd = &aData[usableSize]; in rebuildPage()
7292 u8 *pCellptr = pPg->aCellIdx; in rebuildPage()
7293 u8 *pTmp = sqlite3PagerTempSpace(pPg->pBt->pPager); in rebuildPage()
7294 u8 *pData; in rebuildPage()
7296 u8 *pSrcEnd; /* Current pCArray->apEnd[k] value */ in rebuildPage()
7308 u8 *pCell = pCArray->apCell[i]; in rebuildPage()
7371 u8 *pBegin, /* End of cell-pointer array */ in pageInsertArray()
7372 u8 **ppData, /* IN/OUT: Page content-area pointer */ in pageInsertArray()
7373 u8 *pCellptr, /* Pointer to cell-pointer area */ in pageInsertArray()
7379 u8 *aData = pPg->aData; /* Complete page */ in pageInsertArray()
7380 u8 *pData = *ppData; /* Content area. A subset of aData[] */ in pageInsertArray()
7383 u8 *pEnd; /* Maximum extent of cell data */ in pageInsertArray()
7390 u8 *pSlot; in pageInsertArray()
7440 u8 * const aData = pPg->aData; in pageFreeArray()
7441 u8 * const pEnd = &aData[pPg->pBt->usableSize]; in pageFreeArray()
7442 u8 * const pStart = &aData[pPg->hdrOffset + 8 + pPg->childPtrSize]; in pageFreeArray()
7446 u8 *pFree = 0; in pageFreeArray()
7450 u8 *pCell = pCArray->apCell[i]; in pageFreeArray()
7500 u8 * const aData = pPg->aData; in editPage()
7502 u8 *pBegin = &pPg->aCellIdx[nNew * 2]; in editPage()
7504 u8 *pData; in editPage()
7505 u8 *pCellptr; in editPage()
7511 u8 *pTmp = sqlite3PagerTempSpace(pPg->pBt->pPager); in editPage()
7580 u8 *pCell = pCArray->apCell[i+iNew]; in editPage()
7622 static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){ in balance_quick()
7644 u8 *pOut = &pSpace[4]; in balance_quick()
7645 u8 *pCell = pPage->apOvfl[0]; in balance_quick()
7647 u8 *pStop; in balance_quick()
7728 u8 e;
7735 u8 *z;
7780 u8 * const aFrom = pFrom->aData; in copyNodeContent()
7781 u8 * const aTo = pTo->aData; in copyNodeContent()
7862 u8 *aOvflSpace, /* page-size bytes of space for parent ovfl */ in balance_nonroot()
7882 u8 *pRight; /* Location in parent of right-sibling pointer */ in balance_nonroot()
7883 u8 *apDiv[NB-1]; /* Divider cells in pParent */ in balance_nonroot()
7887 u8 *aSpace1; /* Space for copies of dividers cells */ in balance_nonroot()
7889 u8 abDone[NB+2]; /* True after i'th new page is populated */ in balance_nonroot()
8007 nMaxCells*sizeof(u8*) /* b.apCell */ in balance_nonroot()
8018 aSpace1 = (u8*)&b.szCell[nMaxCells]; in balance_nonroot()
8043 u8 *aData = pOld->aData; in balance_nonroot()
8045 u8 *piCell = aData + pOld->cellOffset; in balance_nonroot()
8046 u8 *piEnd; in balance_nonroot()
8104 u8 *pTemp; in balance_nonroot()
8400 u8 *pCell = b.apCell[i]; in balance_nonroot()
8436 u8 *pCell; in balance_nonroot()
8437 u8 *pTemp; in balance_nonroot()
8439 u8 *pSrcEnd; in balance_nonroot()
8734 u8 aBalanceQuickSpace[13]; in balance()
8735 u8 *pFree = 0; in balance()
8829 u8 *pSpace = sqlite3PageMalloc(pCur->pBt->pageSize); in balance()
8868 u8 *pDest, /* Pointer to the place to start writing */ in btreeOverwriteContent()
8892 if( memcmp(pDest, ((u8*)pX->pData) + iOffset, iAmt)!=0 ){ in btreeOverwriteContent()
8899 memmove(pDest, ((u8*)pX->pData) + iOffset, iAmt); in btreeOverwriteContent()
9305 u8 *aOut = pBt->pTmpSpace; /* Pointer to next output buffer */ in sqlite3BtreeTransferRow()
9306 const u8 *aIn; /* Pointer to next input buffer */ in sqlite3BtreeTransferRow()
9328 u8 *pPgnoOut = 0; in sqlite3BtreeTransferRow()
9365 aIn = (const u8*)sqlite3PagerGetData(pPageIn); in sqlite3BtreeTransferRow()
9416 int sqlite3BtreeDelete(BtCursor *pCur, u8 flags){ in sqlite3BtreeDelete()
9425 u8 bPreserve; /* Keep cursor valid. 2 for CURSOR_SKIPNEXT */ in sqlite3BtreeDelete()
9689 u8 eType = 0; in btreeCreateTable()
10060 pBt->incrVacuum = (u8)iMeta; in sqlite3BtreeUpdateMeta()
10228 u8 eType, /* Expected pointer map type */ in checkPtrmap()
10232 u8 ePtrmapType; in checkPtrmap()
10405 u8 *data; /* Page content */ in checkTreePage()
10406 u8 *pCell; /* Cell content */ in checkTreePage()
10407 u8 *pCellIdx; /* Next element of the cell pointer array */ in checkTreePage()
10417 u8 savedIsInit = 0; in checkTreePage()
10935 int sqlite3BtreeLockTable(Btree *p, int iTab, u8 isWriteLock){ in sqlite3BtreeLockTable()
10939 u8 lockType = READ_LOCK + isWriteLock; in sqlite3BtreeLockTable()
11038 u8 *aData = pBt->pPage1->aData; in sqlite3BtreeSetVersion()
11039 if( aData[18]!=(u8)iVersion || aData[19]!=(u8)iVersion ){ in sqlite3BtreeSetVersion()
11044 aData[18] = (u8)iVersion; in sqlite3BtreeSetVersion()
11045 aData[19] = (u8)iVersion; in sqlite3BtreeSetVersion()