Lines Matching refs:nSize

36345     i64 nSize;                    /* Required file size */
36352 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
36353 if( nSize>(i64)buf.st_size ){
36361 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
36379 for(/*no-op*/; iWrite<nSize+nBlk-1; iWrite+=nBlk ){
36380 if( iWrite>=nSize ) iWrite = nSize - 1;
59453 i64 nSize; /* Size of log file */
59483 rc = sqlite3OsFileSize(pWal->pWalFd, &nSize);
59488 if( nSize>WAL_HDRSIZE ){
59554 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
60179 i64 nSize; /* Current size of database file */
60180 rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
60181 if( rc==SQLITE_OK && nSize<nReq ){
62649 u16 nSize; /* Size of the cell content on the main b-tree page */
64315 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
64343 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
64410 pInfo->nSize = nPayload + (u16)(pIter - pCell);
64411 if( pInfo->nSize<4 ) pInfo->nSize = 4;
64447 pInfo->nSize = nPayload + (u16)(pIter - pCell);
64448 if( pInfo->nSize<4 ) pInfo->nSize = 4;
64477 u32 nSize; /* Size value to return */
64488 nSize = *pIter;
64489 if( nSize>=0x80 ){
64491 nSize &= 0x7f;
64493 nSize = (nSize<<7) | (*++pIter & 0x7f);
64504 testcase( nSize==pPage->maxLocal );
64505 testcase( nSize==pPage->maxLocal+1 );
64506 if( nSize<=pPage->maxLocal ){
64507 nSize += (u32)(pIter - pCell);
64508 if( nSize<4 ) nSize = 4;
64511 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
64512 testcase( nSize==pPage->maxLocal );
64513 testcase( nSize==pPage->maxLocal+1 );
64514 if( nSize>pPage->maxLocal ){
64515 nSize = minLocal;
64517 nSize += 4 + (u16)(pIter - pCell);
64519 assert( nSize==debuginfo.nSize || CORRUPT_DB );
64520 return (u16)nSize;
64540 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
64572 ovfl = get4byte(&pCell[info.nSize-4]);
66784 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
66787 if( iFrom==get4byte(pCell+info.nSize-4) ){
66788 put4byte(pCell+info.nSize-4, iTo);
67675 if( a->nSize!=b->nSize ) return 0;
67688 if( pCur->info.nSize==0 ){
68178 assert( pCur->info.nSize>0 );
68231 pCur->info.nSize = 0;
68282 pCur->info.nSize = 0;
68372 pCur->info.nSize = 0;
68437 assert( pCur->info.nSize==0 );
68660 pCur->info.nSize = 0;
68773 pCur->info.nSize = 0;
68911 pCur->info.nSize = 0;
68952 assert( pCur->info.nSize==0 );
68982 assert( pCur->info.nSize==0 );
69000 pCur->info.nSize = 0;
69511 testcase( pCell + pInfo->nSize == pPage->aDataEnd );
69512 testcase( pCell + (pInfo->nSize-1) == pPage->aDataEnd );
69513 if( pCell + pInfo->nSize > pPage->aDataEnd ){
69517 ovflPgno = get4byte(pCell + pInfo->nSize - 4);
69668 assert( *pnSize == info.nSize );
70518 Pgno ovfl = get4byte(&z[info.nSize-4]);
71782 assert( pCur->info.nSize!=0 );
71795 if( pCur->info.nSize!=0
71890 if( info.nSize==szNew && info.nLocal==info.nPayload
71907 dropCell(pPage, idx, info.nSize, &rc);
71940 pCur->info.nSize = 0;
72076 dropCell(pPage, iCellIdx, info.nSize, &rc);
73048 if( pc+info.nSize>usableSize ){
73067 assert( pc + info.nSize - 4 <= usableSize );
73069 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
73094 btreeHeapInsert(heap, (pc<<16)|(pc+info.nSize-1));
94556 int nSize; /* Bytes of data currently in memory */
94739 p->nSize = iAmt + iOfst;
94757 p->nSize = 0;
98036 int nSize;
98045 nSize = EXPR_FULLSIZE;
98052 nSize = EXPR_REDUCEDSIZE | EP_Reduced;
98055 nSize = EXPR_TOKENONLYSIZE | EP_TokenOnly;
98058 return nSize;
98144 u32 nSize = (u32)exprStructSize(p);
98145 memcpy(zAlloc, p, nSize);
98146 if( nSize<EXPR_FULLSIZE ){
98147 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
145866 int nSize = (p->nTotal / p->nParam);
145867 if( nSize==0 ){
145870 i64 nLarge = p->nTotal - p->nParam*nSize;
145871 i64 iSmall = nLarge*(nSize+1);
145874 assert( (nLarge*(nSize+1) + (p->nParam-nLarge)*nSize)==p->nTotal );
145877 sqlite3_result_int64(pCtx, 1 + iRow/(nSize+1));
145879 sqlite3_result_int64(pCtx, 1 + nLarge + (iRow-iSmall)/nSize);
166511 static int fts3auxGrowStatArray(Fts3auxCursor *pCsr, int nSize){
166512 if( nSize>pCsr->nStat ){
166515 sizeof(struct Fts3auxColstats) * nSize
166519 sizeof(struct Fts3auxColstats) * (nSize - pCsr->nStat)
166522 pCsr->nStat = nSize;
170571 int nSize; /* Size of allocation at aData */
172622 pWriter->nSize = p->nNodeSize;
172693 if( nReq>pWriter->nSize ){
172697 pWriter->nSize = nReq;
172699 assert( nData+nReq<=pWriter->nSize );
173485 i64 nSize = 0, dummy;
173486 fts3ReadEndBlockField(pRange, 2, &dummy, &nSize);
173487 if( nSize<=0 || nSize>nLimit ){
209201 int nSize;
213690 u8 *p = pIter->aPoslist + pIter->nSize + pIter->nPoslist;
213704 pIter->nSize = fts5GetVarint32(p, nPos);
213708 pIter->nSize = 1;
213846 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
213853 fts5BufferSafeAppendBlob(&out, i2.aPoslist, i2.nPoslist+i2.nSize);
213863 u8 *a1 = &i1.aPoslist[i1.nSize];
213864 u8 *a2 = &i2.aPoslist[i2.nSize];