Lines Matching refs:u16
1137 pInfo->nLocal = (u16)surplus; in btreeParseCellAdjustSizeForOverflow()
1139 pInfo->nLocal = (u16)minLocal; in btreeParseCellAdjustSizeForOverflow()
1141 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4; in btreeParseCellAdjustSizeForOverflow()
1268 pInfo->nSize = nPayload + (u16)(pIter - pCell); in btreeParseCellPtr()
1270 pInfo->nLocal = (u16)nPayload; in btreeParseCellPtr()
1305 pInfo->nSize = nPayload + (u16)(pIter - pCell); in btreeParseCellPtrIndex()
1307 pInfo->nLocal = (u16)nPayload; in btreeParseCellPtrIndex()
1333 static u16 cellSizePtr(MemPage *pPage, u8 *pCell){ in cellSizePtr()
1369 nSize += 4 + (u16)(pIter - pCell); in cellSizePtr()
1372 return (u16)nSize; in cellSizePtr()
1374 static u16 cellSizePtrNoPayload(MemPage *pPage, u8 *pCell){ in cellSizePtrNoPayload()
1392 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB ); in cellSizePtrNoPayload()
1393 return (u16)(pIter - pCell); in cellSizePtrNoPayload()
1395 static u16 cellSizePtrTableLeaf(MemPage *pPage, u8 *pCell){ in cellSizePtrTableLeaf()
1442 nSize += 4 + (u16)(pIter - pCell); in cellSizePtrTableLeaf()
1445 return (u16)nSize; in cellSizePtrTableLeaf()
1452 static u16 cellSize(MemPage *pPage, int iCell){ in cellSize()
1799 static int freeSpace(MemPage *pPage, u16 iStart, u16 iSize){ in freeSpace()
1800 u16 iPtr; /* Address of ptr to next freeblock */ in freeSpace()
1801 u16 iFreeBlk; /* Address of the next freeblock */ in freeSpace()
1804 u16 iOrigSize = iSize; /* Original value of iSize */ in freeSpace()
1805 u16 x; /* Offset to cell content area */ in freeSpace()
2040 pPage->nFree = (u16)(nFree - iCellFirst); in btreeComputeFreeSpace()
2109 pPage->maskPage = (u16)(pBt->pageSize - 1); in btreeInitPage()
2146 u16 first; in zeroPage()
2161 pPage->nFree = (u16)(pBt->usableSize - first); in zeroPage()
2169 pPage->maskPage = (u16)(pBt->pageSize - 1); in zeroPage()
2569 assert( sizeof(u16)==2 ); in sqlite3BtreeOpen()
2990 pBt->usableSize = pBt->pageSize - (u16)nReserve; in sqlite3BtreeSetPageSize()
3330 pBt->maxLocal = (u16)((pBt->usableSize-12)*64/255 - 23); in lockBtree()
3331 pBt->minLocal = (u16)((pBt->usableSize-12)*32/255 - 23); in lockBtree()
3332 pBt->maxLeaf = (u16)(pBt->usableSize - 35); in lockBtree()
3333 pBt->minLeaf = (u16)((pBt->usableSize-12)*32/255 - 23); in lockBtree()
5665 pCur->ix = (u16)idx; in sqlite3BtreeTableMoveto()
5684 pCur->ix = (u16)idx; in sqlite3BtreeTableMoveto()
5695 pCur->ix = (u16)lwr; in sqlite3BtreeTableMoveto()
5943 pCur->ix = (u16)idx; in sqlite3BtreeIndexMoveto()
5966 pCur->ix = (u16)idx; in sqlite3BtreeIndexMoveto()
5978 pCur->ix = (u16)idx; in sqlite3BtreeIndexMoveto()
5988 pCur->ix = (u16)lwr; in sqlite3BtreeIndexMoveto()
7084 pPage->aiOvfl[j] = (u16)i; in insertCell()
7091 assert( j==0 || pPage->aiOvfl[j-1]<(u16)i ); /* Overflows in sorted order */ in insertCell()
7109 pPage->nFree -= (u16)(2 + sz); in insertCell()
7227 u16 *szCell; /* Local size of all cells in apCell[] */
7254 static SQLITE_NOINLINE u16 computeCellSize(CellArray *p, int N){ in computeCellSize()
7260 static u16 cachedCellSize(CellArray *p, int N){ in cachedCellSize()
7309 u16 sz = pCArray->szCell[i]; in rebuildPage()
7460 freeSpace(pPg, (u16)(pFree - aData), szFree); in pageFreeArray()
7476 freeSpace(pPg, (u16)(pFree - aData), szFree); in pageFreeArray()
7646 u16 szCell = pPage->xCellSize(pPage, pCell); in balance_quick()
7873 u16 leafCorrection; /* 4 if pPage is a leaf. 0 if not */ in balance_nonroot()
8008 + nMaxCells*sizeof(u16) /* b.szCell */ in balance_nonroot()
8017 b.szCell = (u16*)&b.apCell[nMaxCells]; in balance_nonroot()
8044 u16 maskPage = pOld->maskPage; in balance_nonroot()
8103 u16 sz = (u16)szNew[i]; in balance_nonroot()
8340 u16 fgA = apNew[i]->pDbPage->flags; in balance_nonroot()
8341 u16 fgB = apNew[iB]->pDbPage->flags; in balance_nonroot()