Lines Matching refs:nSize
40729 i64 nSize; /* Required file size */
40736 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
40737 if( nSize>(i64)buf.st_size ){
40745 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
40750 "fcntlSizeHint-fallocate, fd[%d], bufSize[%lld], nSize[%lld] err[%d]",
40753 nSize,
40762 ** at offset (nSize-1), to set the size of the file correctly.
40773 for(/*no-op*/; iWrite<nSize+nBlk-1; iWrite+=nBlk ){
40774 if( iWrite>=nSize ) iWrite = nSize - 1;
40779 "fcntlSizeHint-seekAndWrite, fd[%d], nWrite[%d], nSize[%d], nBlk[%d], iWrite[%lld]",
40782 nSize,
61992 PAGERTRACE(("DATABASE SYNC: File=%s zSuper=%s nSize=%d\n",
64585 i64 nSize; /* Size of log file */
64609 rc = sqlite3OsFileSize(pWal->pWalFd, &nSize);
64614 if( nSize>WAL_HDRSIZE ){
64625 u32 iLastFrame; /* Last frame in wal, based on nSize alone */
64681 iLastFrame = (nSize - WAL_HDRSIZE) / szFrame;
65473 i64 nSize; /* Current size of database file */
65475 rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
65476 if( rc==SQLITE_OK && nSize<nReq ){
65477 if( (nSize+65536+(i64)pWal->hdr.mxFrame*szPage)<nReq ){
68051 u16 nSize; /* Size of the cell content on the main b-tree page */
69759 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
69805 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
69886 pInfo->nSize = nPayload + (u16)(pIter - pCell);
69887 if( pInfo->nSize<4 ) pInfo->nSize = 4;
69923 pInfo->nSize = nPayload + (u16)(pIter - pCell);
69924 if( pInfo->nSize<4 ) pInfo->nSize = 4;
69954 u32 nSize; /* Size value to return */
69958 ** the (CellInfo.nSize) value found by doing a full parse of the
69965 nSize = *pIter;
69966 if( nSize>=0x80 ){
69968 nSize &= 0x7f;
69970 nSize = (nSize<<7) | (*++pIter & 0x7f);
69974 testcase( nSize==pPage->maxLocal );
69975 testcase( nSize==(u32)pPage->maxLocal+1 );
69976 if( nSize<=pPage->maxLocal ){
69977 nSize += (u32)(pIter - pCell);
69978 if( nSize<4 ) nSize = 4;
69981 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
69982 testcase( nSize==pPage->maxLocal );
69983 testcase( nSize==(u32)pPage->maxLocal+1 );
69984 if( nSize>pPage->maxLocal ){
69985 nSize = minLocal;
69987 nSize += 4 + (u16)(pIter - pCell);
69989 assert( nSize==debuginfo.nSize || CORRUPT_DB );
69990 return (u16)nSize;
69998 ** the (CellInfo.nSize) value found by doing a full parse of the
70010 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
70016 u32 nSize; /* Size value to return */
70020 ** the (CellInfo.nSize) value found by doing a full parse of the
70027 nSize = *pIter;
70028 if( nSize>=0x80 ){
70030 nSize &= 0x7f;
70032 nSize = (nSize<<7) | (*++pIter & 0x7f);
70047 testcase( nSize==pPage->maxLocal );
70048 testcase( nSize==(u32)pPage->maxLocal+1 );
70049 if( nSize<=pPage->maxLocal ){
70050 nSize += (u32)(pIter - pCell);
70051 if( nSize<4 ) nSize = 4;
70054 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
70055 testcase( nSize==pPage->maxLocal );
70056 testcase( nSize==(u32)pPage->maxLocal+1 );
70057 if( nSize>pPage->maxLocal ){
70058 nSize = minLocal;
70060 nSize += 4 + (u16)(pIter - pCell);
70062 assert( nSize==debuginfo.nSize || CORRUPT_DB );
70063 return (u16)nSize;
70094 ovfl = get4byte(&pCell[info.nSize-4]);
72376 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
72379 if( iFrom==get4byte(pCell+info.nSize-4) ){
72380 put4byte(pCell+info.nSize-4, iTo);
73332 if( a->nSize!=b->nSize ) return 0;
73345 if( pCur->info.nSize==0 ){
73850 assert( pCur->info.nSize>0 );
73901 pCur->info.nSize = 0;
73953 pCur->info.nSize = 0;
74043 pCur->info.nSize = 0;
74107 assert( pCur->info.nSize==0 );
74312 pCur->info.nSize = 0;
74340 pCur->info.nSize = 0;
74633 pCur->info.nSize = 0;
74757 pCur->info.nSize = 0;
74798 assert( pCur->info.nSize==0 );
74828 assert( pCur->info.nSize==0 );
74846 pCur->info.nSize = 0;
75357 testcase( pCell + pInfo->nSize == pPage->aDataEnd );
75358 testcase( pCell + (pInfo->nSize-1) == pPage->aDataEnd );
75359 if( pCell + pInfo->nSize > pPage->aDataEnd ){
75363 ovflPgno = get4byte(pCell + pInfo->nSize - 4);
75529 assert( *pnSize == info.nSize );
76380 Pgno ovfl = get4byte(&z[info.nSize-4]);
77721 if( pCur->info.nSize!=0
77839 if( info.nSize==szNew && info.nLocal==info.nPayload
77861 dropCell(pPage, idx, info.nSize, &rc);
77876 ** the cursor, zero the BtCursor.info.nSize and BTCF_ValidNKey
77894 pCur->info.nSize = 0;
78160 dropCell(pPage, iCellIdx, info.nSize, &rc);
79143 if( pc+info.nSize>usableSize ){
79162 assert( pc + info.nSize - 4 <= usableSize );
79164 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
79189 btreeHeapInsert(heap, (pc<<16)|(pc+info.nSize-1));
107159 int nSize;
107168 nSize = EXPR_FULLSIZE;
107174 nSize = EXPR_REDUCEDSIZE | EP_Reduced;
107177 nSize = EXPR_TOKENONLYSIZE | EP_TokenOnly;
107180 return nSize;
107267 u32 nSize = (u32)exprStructSize(p);
107268 memcpy(zAlloc, p, nSize);
107269 if( nSize<EXPR_FULLSIZE ){
107270 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
163583 int nSize = (p->nTotal / p->nParam);
163584 if( nSize==0 ){
163587 i64 nLarge = p->nTotal - p->nParam*nSize;
163588 i64 iSmall = nLarge*(nSize+1);
163591 assert( (nLarge*(nSize+1) + (p->nParam-nLarge)*nSize)==p->nTotal );
163594 sqlite3_result_int64(pCtx, 1 + iRow/(nSize+1));
163596 sqlite3_result_int64(pCtx, 1 + nLarge + (iRow-iSmall)/nSize);
186008 static int fts3auxGrowStatArray(Fts3auxCursor *pCsr, int nSize){
186009 if( nSize>pCsr->nStat ){
186012 sizeof(struct Fts3auxColstats) * nSize
186016 sizeof(struct Fts3auxColstats) * (nSize - pCsr->nStat)
186019 pCsr->nStat = nSize;
190080 int nSize; /* Size of allocation at aData */
192149 pWriter->nSize = p->nNodeSize;
192221 if( nReq>pWriter->nSize ){
192225 pWriter->nSize = nReq;
192227 assert( nData+nReq<=pWriter->nSize );
193027 i64 nSize = 0, dummy;
193028 fts3ReadEndBlockField(pRange, 2, &dummy, &nSize);
193029 if( nSize<=0 || nSize>nLimit ){
193030 /* If nSize==0, then the %_segdir.end_block field does not not
230320 int nSize;
234888 u8 *p = pIter->aPoslist + pIter->nSize + pIter->nPoslist;
234902 pIter->nSize = fts5GetVarint32(p, nPos);
234906 pIter->nSize = 1;
235124 pSave->aPos = &pSave->iter.aPoslist[pSave->iter.nSize];
235192 fts5BufferSafeAppendBlob(&out, pI->aPoslist, pI->nPoslist+pI->nSize);