Lines Matching refs:nSize
42269 i64 nSize; /* Required file size */
42276 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
42277 if( nSize>(i64)buf.st_size ){
42285 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
42303 for(/*no-op*/; iWrite<nSize+nBlk-1; iWrite+=nBlk ){
42304 if( iWrite>=nSize ) iWrite = nSize - 1;
66289 i64 nSize; /* Size of log file */
66313 rc = sqlite3OsFileSize(pWal->pWalFd, &nSize);
66318 if( nSize>WAL_HDRSIZE ){
66386 iLastFrame = (nSize - WAL_HDRSIZE) / szFrame;
67171 i64 nSize; /* Current size of database file */
67173 rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
67174 if( rc==SQLITE_OK && nSize<nReq ){
67175 if( (nSize+65536+(i64)pWal->hdr.mxFrame*szPage)<nReq ){
69997 u16 nSize; /* Size of the cell content on the main b-tree page */
71749 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
71795 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
71880 pInfo->nSize = nPayload + (u16)(pIter - pCell);
71881 if( pInfo->nSize<4 ) pInfo->nSize = 4;
71917 pInfo->nSize = nPayload + (u16)(pIter - pCell);
71918 if( pInfo->nSize<4 ) pInfo->nSize = 4;
71949 u32 nSize; /* Size value to return */
71961 nSize = *pIter;
71962 if( nSize>=0x80 ){
71964 nSize &= 0x7f;
71966 nSize = (nSize<<7) | (*++pIter & 0x7f);
71970 testcase( nSize==pPage->maxLocal );
71971 testcase( nSize==(u32)pPage->maxLocal+1 );
71972 if( nSize<=pPage->maxLocal ){
71973 nSize += (u32)(pIter - pCell);
71974 assert( nSize>4 );
71977 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
71978 testcase( nSize==pPage->maxLocal );
71979 testcase( nSize==(u32)pPage->maxLocal+1 );
71980 if( nSize>pPage->maxLocal ){
71981 nSize = minLocal;
71983 nSize += 4 + (u16)(pIter - pCell);
71985 assert( nSize==debuginfo.nSize || CORRUPT_DB );
71986 return (u16)nSize;
71991 u32 nSize; /* Size value to return */
72003 nSize = *pIter;
72004 if( nSize>=0x80 ){
72006 nSize &= 0x7f;
72008 nSize = (nSize<<7) | (*++pIter & 0x7f);
72012 testcase( nSize==pPage->maxLocal );
72013 testcase( nSize==(u32)pPage->maxLocal+1 );
72014 if( nSize<=pPage->maxLocal ){
72015 nSize += (u32)(pIter - pCell);
72016 if( nSize<4 ) nSize = 4;
72019 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
72020 testcase( nSize==pPage->maxLocal );
72021 testcase( nSize==(u32)pPage->maxLocal+1 );
72022 if( nSize>pPage->maxLocal ){
72023 nSize = minLocal;
72025 nSize += 4 + (u16)(pIter - pCell);
72027 assert( nSize==debuginfo.nSize || CORRUPT_DB );
72028 return (u16)nSize;
72048 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
72054 u32 nSize; /* Size value to return */
72065 nSize = *pIter;
72066 if( nSize>=0x80 ){
72068 nSize &= 0x7f;
72070 nSize = (nSize<<7) | (*++pIter & 0x7f);
72085 testcase( nSize==pPage->maxLocal );
72086 testcase( nSize==(u32)pPage->maxLocal+1 );
72087 if( nSize<=pPage->maxLocal ){
72088 nSize += (u32)(pIter - pCell);
72089 if( nSize<4 ) nSize = 4;
72092 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
72093 testcase( nSize==pPage->maxLocal );
72094 testcase( nSize==(u32)pPage->maxLocal+1 );
72095 if( nSize>pPage->maxLocal ){
72096 nSize = minLocal;
72098 nSize += 4 + (u16)(pIter - pCell);
72100 assert( nSize==debuginfo.nSize || CORRUPT_DB );
72101 return (u16)nSize;
72132 ovfl = get4byte(&pCell[info.nSize-4]);
74401 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
74404 if( iFrom==get4byte(pCell+info.nSize-4) ){
74405 put4byte(pCell+info.nSize-4, iTo);
75357 if( a->nSize!=b->nSize ) return 0;
75370 if( pCur->info.nSize==0 ){
75881 assert( pCur->info.nSize>0 );
75933 pCur->info.nSize = 0;
75995 pCur->info.nSize = 0;
76085 pCur->info.nSize = 0;
76149 assert( pCur->info.nSize==0 );
76361 pCur->info.nSize = 0;
76389 pCur->info.nSize = 0;
76684 pCur->info.nSize = 0;
76708 pCur->info.nSize = 0;
76833 pCur->info.nSize = 0;
76874 assert( pCur->info.nSize==0 );
76907 assert( pCur->info.nSize==0 );
76925 pCur->info.nSize = 0;
77436 testcase( pCell + pInfo->nSize == pPage->aDataEnd );
77437 testcase( pCell + (pInfo->nSize-1) == pPage->aDataEnd );
77438 if( pCell + pInfo->nSize > pPage->aDataEnd ){
77442 ovflPgno = get4byte(pCell + pInfo->nSize - 4);
77611 assert( *pnSize == info.nSize );
78562 Pgno ovfl = get4byte(&z[info.nSize-4]);
79929 if( pCur->info.nSize!=0
80035 pCur->info.nSize = 0;
80053 if( info.nSize==szNew && info.nLocal==info.nPayload
80075 dropCell(pPage, idx, info.nSize, &rc);
80376 dropCell(pPage, iCellIdx, info.nSize, &rc);
81405 if( pc+info.nSize>usableSize ){
81424 assert( pc + info.nSize - 4 <= usableSize );
81426 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
81451 btreeHeapInsert(heap, (pc<<16)|(pc+info.nSize-1));
110522 int nSize;
110527 nSize = EXPR_FULLSIZE;
110533 nSize = EXPR_REDUCEDSIZE | EP_Reduced;
110536 nSize = EXPR_TOKENONLYSIZE | EP_TokenOnly;
110539 return nSize;
110665 u32 nSize = (u32)exprStructSize(p);
110668 memcpy(sEdupBuf.zAlloc, p, nSize);
110669 if( nSize<EXPR_FULLSIZE ){
110670 memset(&sEdupBuf.zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
169804 int nSize = (p->nTotal / p->nParam);
169805 if( nSize==0 ){
169808 i64 nLarge = p->nTotal - p->nParam*nSize;
169809 i64 iSmall = nLarge*(nSize+1);
169812 assert( (nLarge*(nSize+1) + (p->nParam-nLarge)*nSize)==p->nTotal );
169815 sqlite3_result_int64(pCtx, 1 + iRow/(nSize+1));
169817 sqlite3_result_int64(pCtx, 1 + nLarge + (iRow-iSmall)/nSize);
192590 static int fts3auxGrowStatArray(Fts3auxCursor *pCsr, int nSize){
192591 if( nSize>pCsr->nStat ){
192594 sizeof(struct Fts3auxColstats) * nSize
192598 sizeof(struct Fts3auxColstats) * (nSize - pCsr->nStat)
192601 pCsr->nStat = nSize;
196664 int nSize; /* Size of allocation at aData */
198733 pWriter->nSize = p->nNodeSize;
198805 if( nReq>pWriter->nSize ){
198809 pWriter->nSize = nReq;
198811 assert( nData+nReq<=pWriter->nSize );
199613 i64 nSize = 0, dummy;
199614 fts3ReadEndBlockField(pRange, 2, &dummy, &nSize);
199615 if( nSize<=0 || nSize>nLimit ){
205966 u32 nSize;
205971 nSize = pParse->nBlob + nExtra;
205973 if( jsonBlobExpand(pParse, nSize) ){
240913 int nSize;
246406 u8 *p = pIter->aPoslist + pIter->nSize + pIter->nPoslist;
246420 pIter->nSize = fts5GetVarint32(p, nPos);
246424 pIter->nSize = 1;
246642 pSave->aPos = &pSave->iter.aPoslist[pSave->iter.nSize];
246710 fts5BufferSafeAppendBlob(&out, pI->aPoslist, pI->nPoslist+pI->nSize);