Lines Matching refs:sz

10397 SQLITE_PRIVATE void sqlite3PCacheBufferSetup(void *, int sz, int n);
10951 u16 sz; /* Size of each buffer in bytes */ member
20689 int i, n, sz;
20691 sz = ROUNDDOWN8(sqlite3GlobalConfig.szScratch);
20692 sqlite3GlobalConfig.szScratch = sz;
20698 pSlot->pNext = (ScratchFreeslot*)(sz+(char*)pSlot);
20985 return db->lookaside.sz;
21041 memset(p, 0xaa, db->lookaside.sz);
21178 if( n>db->lookaside.sz ){
21220 if( n<=db->lookaside.sz ){
21225 memcpy(pNew, p, db->lookaside.sz);
24716 int i, sz;
24717 sz = sqlite3Strlen30(z);
24718 for(i=sz-1; i>0 && z[i]!='/' && z[i]!='.'; i--){}
24719 if( z[i]=='.' && ALWAYS(sz>i+4) ) memmove(&z[i+1], &z[sz-3], 4);
26173 static int robust_ftruncate(int h, sqlite3_int64 sz){
26180 if( sz>(sqlite3_int64)0x7FFFFFFF ){
26184 do{ rc = osFtruncate(h,sz); }while( rc<0 && errno==EINTR );
37104 sqlite3_int64 sz; /* Current size of wal-index file */
37112 rc = winFileSize((sqlite3_file *)&pShmNode->hFile, &sz);
37119 if( sz<nByte ){
39177 SQLITE_PRIVATE int sqlite3BitvecBuiltinTest(int sz, int *aOp){
39186 pBitvec = sqlite3BitvecCreate( sz );
39187 pV = sqlite3MallocZero( (sz+7)/8 + 1 );
39217 i = (i & 0x7fffffff)%sz;
39234 rc = sqlite3BitvecTest(0,0) + sqlite3BitvecTest(pBitvec, sz+1)
39236 + (sqlite3BitvecSize(pBitvec) - sz);
39237 for(i=1; i<=sz; i++){
40091 SQLITE_PRIVATE void sqlite3PCacheBufferSetup(void *pBuf, int sz, int n){
40094 sz = ROUNDDOWN8(sz);
40095 pcache1.szSlot = sz;
40105 pBuf = (void*)&((char*)pBuf)[sz];
40143 int sz = sqlite3MallocSize(p);
40146 sqlite3StatusUp(SQLITE_STATUS_PAGECACHE_OVERFLOW, sz);
40267 SQLITE_PRIVATE void *sqlite3PageMalloc(int sz){
40268 return pcache1Alloc(sz);
40489 int sz; /* Bytes of memory required to allocate the new cache */
40512 sz = sizeof(PCache1) + sizeof(PGroup)*separateCache;
40513 pCache = (PCache1 *)sqlite3MallocZero(sz);
42980 i64 sz;
42981 rc = sqlite3OsFileSize(pPager->jfd, &sz);
42982 if( rc==SQLITE_OK && sz>iLimit ){
45022 sqlite3_int64 sz;
45023 sz = pPager->szMmap;
45024 pPager->bUseFetch = (sz>0);
45025 sqlite3OsFileControlHint(pPager->fd, SQLITE_FCNTL_MMAP_SIZE, &sz);
50772 i64 sz;
50775 rx = sqlite3OsFileSize(pWal->pWalFd, &sz);
50776 if( rx==SQLITE_OK && (sz > nMax ) ){
51370 int sz;
51372 sz = pWal->hdr.szPage;
51373 sz = (sz&0xfe00) + ((sz&0x0001)<<16);
51374 testcase( sz<=32768 );
51375 testcase( sz>=65536 );
51376 iOffset = walFrameOffset(iRead, sz) + WAL_FRAME_HDRSIZE;
51378 return sqlite3OsRead(pWal->pWalFd, pOut, (nOut>sz ? sz : nOut), iOffset);
51806 i64 sz = pWal->mxWalSize;
51808 sz = walFrameOffset(iFrame+nExtra+1, szPage);
51810 walLimitSize(pWal, sz);
54671 int sz; /* Size of a cell */
54681 sz = cellSizePtr(pPage, &data[pc]);
54682 testcase( pc+sz==usableSize );
54683 if( pc+sz>usableSize ){
59047 static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){
59057 assert( sz==cellSize(pPage, idx) );
59065 testcase( pc+sz==pPage->pBt->usableSize );
59066 if( pc < (u32)get2byte(&data[hdr+5]) || pc+sz > pPage->pBt->usableSize ){
59070 rc = freeSpace(pPage, pc, sz);
59105 int sz, /* Bytes of content in pCell */
59130 assert( sz==cellSizePtr(pPage, pCell) || (sz==8 && iChild>0) );
59131 if( pPage->nOverflow || sz+2>pPage->nFree ){
59133 memcpy(pTemp, pCell, sz);
59154 rc = allocateSpace(pPage, sz, &idx);
59159 assert( idx+sz <= (int)pPage->pBt->usableSize );
59161 pPage->nFree -= (u16)(2 + sz);
59162 memcpy(&data[idx], pCell, sz);
59274 int sz = szCell[i];
59277 if( bFreelist==0 || (pSlot = pageFindSlot(pPg, sz, &rc, 0))==0 ){
59278 pData -= sz;
59282 memcpy(pSlot, apCell[i], sz);
59316 int sz = szCell[i];
59317 if( pFree!=(pCell + sz) ){
59323 szFree = sz;
59324 if( pFree+sz>pEnd ) return 0;
59327 szFree += sz;
59920 u16 sz = (u16)szNew[i];
59923 szCell[nCell] = sz;
59925 iSpace1 += sz;
59926 assert( sz<=pBt->maxLocal+23 );
59928 memcpy(pTemp, apDiv[i], sz);
60199 int sz;
60205 sz = szCell[j] + leafCorrection;
60219 sz = 4 + putVarint(&pCell[4], info.nKey);
60236 sz = cellSizePtr(pParent, pCell);
60239 iOvflSpace += sz;
60240 assert( sz<=pBt->maxLocal+23 );
60242 insertCell(pParent, nxDiv+i, pCell, sz, pTemp, pNew->pgno, &rc);
61705 u32 sz;
61715 sz = info.nPayload;
61727 if( (sz>info.nLocal)
61730 int nPage = (sz - info.nLocal + usableSize - 5)/(usableSize - 4);
78836 int sz; /* Size of pSorter in bytes */
78863 sz = sizeof(VdbeSorter) + nWorker * sizeof(SortSubtask);
78865 pSorter = (VdbeSorter*)sqlite3DbMallocZero(db, sz + szKeyInfo);
78870 pSorter->pKeyInfo = pKeyInfo = (KeyInfo*)((u8*)pSorter + sz);
94252 int sz = (n==0) ? 1 : 2*n;
94253 void *pNew = sqlite3DbRealloc(db, pArray, sz*szEntry);
104338 sqlite3_int64 sz;
104343 sqlite3DecOrHexToI64(zRight, &sz);
104344 if( sz<0 ) sz = sqlite3GlobalConfig.szMmap;
104345 if( pId2->n==0 ) db->szMmap = sz;
104348 sqlite3BtreeSetMmapLimit(db->aDb[ii].pBt, sz);
104352 sz = -1;
104353 rc = sqlite3_file_control(db, zDb, SQLITE_FCNTL_MMAP_SIZE, &sz);
104355 sz = 0;
104359 returnSingleInt(pParse, "mmap_size", sz);
106406 int sz;
106408 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
106409 nBytes = sz;
128635 static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
128650 sz = ROUNDDOWN8(sz); /* IMP: R-33038-09382 */
128651 if( sz<=(int)sizeof(LookasideSlot*) ) sz = 0;
128653 if( sz==0 || cnt==0 ){
128654 sz = 0;
128658 pStart = sqlite3Malloc( sz*cnt ); /* IMP: R-61949-35727 */
128660 if( pStart ) cnt = sqlite3MallocSize(pStart)/sz;
128666 db->lookaside.sz = (u16)sz;
128670 assert( sz > (int)sizeof(LookasideSlot*) );
128675 p = (LookasideSlot*)&((u8*)p)[sz];
128736 int sz = va_arg(ap, int); /* IMP: R-47871-25994 */
128738 rc = setupLookaside(db, pBuf, sz, cnt);
131390 int sz = va_arg(ap, int);
131392 rc = sqlite3BitvecBuiltinTest(sz, aProg);
131579 int sz;
131580 sz = va_arg(ap, int);
131583 if( sz ) *ppNew = sqlite3ScratchMalloc(sz);