Lines Matching refs:sz
584 int sz; /* The size of a Cell in bytes */ in initPage() local
605 sz = cellSize(pBt, pCell); in initPage()
606 if( idx+sz > SQLITE_USABLE_SIZE ) goto page_format_error; in initPage()
607 freeSpace -= sz; in initPage()
2031 static void dropCell(Btree *pBt, MemPage *pPage, int idx, int sz){ in dropCell() argument
2034 assert( sz==cellSize(pBt, pPage->apCell[idx]) ); in dropCell()
2036 freeSpace(pBt, pPage, Addr(pPage->apCell[idx]) - Addr(pPage), sz); in dropCell()
2057 static void insertCell(Btree *pBt, MemPage *pPage, int i, Cell *pCell, int sz){ in insertCell() argument
2060 assert( sz==cellSize(pBt, pCell) ); in insertCell()
2062 idx = allocateSpace(pBt, pPage, sz); in insertCell()
2071 memcpy(&pPage->u.aDisk[idx], pCell, sz); in insertCell()
3051 int sz = cellSize(pBt, pCell); in fileBtreePageDump() local
3052 sprintf(range,"%d..%d", idx, idx+sz-1); in fileBtreePageDump()
3053 sz = NKEY(pBt, pCell->h) + NDATA(pBt, pCell->h); in fileBtreePageDump()
3054 if( sz>sizeof(payload)-1 ) sz = sizeof(payload)-1; in fileBtreePageDump()
3055 memcpy(payload, pCell->aPayload, sz); in fileBtreePageDump()
3056 for(j=0; j<sz; j++){ in fileBtreePageDump()
3059 payload[sz] = 0; in fileBtreePageDump()
3334 int sz; in checkTreePage() local
3339 sz = nKey2 + NDATA(pBt, pCell->h); in checkTreePage()
3341 if( sz>MX_LOCAL_PAYLOAD ){ in checkTreePage()
3342 int nPage = (sz - MX_LOCAL_PAYLOAD + OVERFLOW_SIZE - 1)/OVERFLOW_SIZE; in checkTreePage()