• Home
  • Raw
  • Download

Lines Matching refs:nSize

34463     i64 nSize;                    /* Required file size */
34470 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
34471 if( nSize>(i64)buf.st_size ){
34479 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
34497 for(/*no-op*/; iWrite<nSize+nBlk-1; iWrite+=nBlk ){
34498 if( iWrite>=nSize ) iWrite = nSize - 1;
56710 i64 nSize; /* Size of log file */
56740 rc = sqlite3OsFileSize(pWal->pWalFd, &nSize);
56745 if( nSize>WAL_HDRSIZE ){
56811 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
57425 i64 nSize; /* Current size of database file */
57438 rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
57439 if( rc==SQLITE_OK && nSize<nReq ){
59871 u16 nSize; /* Size of the cell content on the main b-tree page */
61509 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
61537 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
61604 pInfo->nSize = nPayload + (u16)(pIter - pCell);
61605 if( pInfo->nSize<4 ) pInfo->nSize = 4;
61641 pInfo->nSize = nPayload + (u16)(pIter - pCell);
61642 if( pInfo->nSize<4 ) pInfo->nSize = 4;
61671 u32 nSize; /* Size value to return */
61682 nSize = *pIter;
61683 if( nSize>=0x80 ){
61685 nSize &= 0x7f;
61687 nSize = (nSize<<7) | (*++pIter & 0x7f);
61698 testcase( nSize==pPage->maxLocal );
61699 testcase( nSize==pPage->maxLocal+1 );
61700 if( nSize<=pPage->maxLocal ){
61701 nSize += (u32)(pIter - pCell);
61702 if( nSize<4 ) nSize = 4;
61705 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
61706 testcase( nSize==pPage->maxLocal );
61707 testcase( nSize==pPage->maxLocal+1 );
61708 if( nSize>pPage->maxLocal ){
61709 nSize = minLocal;
61711 nSize += 4 + (u16)(pIter - pCell);
61713 assert( nSize==debuginfo.nSize || CORRUPT_DB );
61714 return (u16)nSize;
61734 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
61759 Pgno ovfl = get4byte(&pCell[info.nSize-4]);
63910 if( pCell+info.nSize > pPage->aData+pPage->pBt->usableSize ){
63913 if( iFrom==get4byte(pCell+info.nSize-4) ){
63914 put4byte(pCell+info.nSize-4, iTo);
64804 if( pCur->info.nSize==0 ){
65278 assert( pCur->info.nSize>0 );
65331 pCur->info.nSize = 0;
65382 pCur->info.nSize = 0;
65472 pCur->info.nSize = 0;
65537 assert( pCur->info.nSize==0 );
65760 pCur->info.nSize = 0;
65873 pCur->info.nSize = 0;
66009 pCur->info.nSize = 0;
66051 assert( pCur->info.nSize==0 );
66086 assert( pCur->info.nSize==0 );
66105 pCur->info.nSize = 0;
66615 if( pCell+pInfo->nSize-1 > pPage->aData+pPage->maskPage ){
66619 ovflPgno = get4byte(pCell + pInfo->nSize - 4);
66770 assert( *pnSize == info.nSize );
67486 Pgno ovfl = get4byte(&z[info.nSize-4]);
68690 if( info.nSize==szNew && info.nLocal==info.nPayload
68707 dropCell(pPage, idx, info.nSize, &rc);
68740 pCur->info.nSize = 0;
68871 dropCell(pPage, iCellIdx, info.nSize, &rc);
69835 if( pc+info.nSize>usableSize ){
69854 assert( pc + info.nSize - 4 <= usableSize );
69856 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
69881 btreeHeapInsert(heap, (pc<<16)|(pc+info.nSize-1));
90627 int nSize; /* Bytes of data currently in memory */
90810 p->nSize = iAmt + iOfst;
90828 p->nSize = 0;
93809 int nSize;
93814 nSize = EXPR_FULLSIZE;
93821 nSize = EXPR_REDUCEDSIZE | EP_Reduced;
93824 nSize = EXPR_TOKENONLYSIZE | EP_TokenOnly;
93827 return nSize;
93913 u32 nSize = (u32)exprStructSize(p);
93914 memcpy(zAlloc, p, nSize);
93915 if( nSize<EXPR_FULLSIZE ){
93916 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
155008 static int fts3auxGrowStatArray(Fts3auxCursor *pCsr, int nSize){
155009 if( nSize>pCsr->nStat ){
155012 sizeof(struct Fts3auxColstats) * nSize
155016 sizeof(struct Fts3auxColstats) * (nSize - pCsr->nStat)
155019 pCsr->nStat = nSize;
159082 int nSize; /* Size of allocation at aData */
161122 pWriter->nSize = p->nNodeSize;
161188 if( nReq>pWriter->nSize ){
161192 pWriter->nSize = nReq;
161194 assert( nData+nReq<=pWriter->nSize );
161978 i64 nSize = 0, dummy;
161979 fts3ReadEndBlockField(pRange, 2, &dummy, &nSize);
161980 if( nSize<=0 || nSize>nLimit ){
194586 int nSize;
199036 u8 *p = pIter->aPoslist + pIter->nSize + pIter->nPoslist;
199050 pIter->nSize = fts5GetVarint32(p, nPos);
199054 pIter->nSize = 1;
199192 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
199199 fts5BufferSafeAppendBlob(&out, i2.aPoslist, i2.nPoslist+i2.nSize);
199209 u8 *a1 = &i1.aPoslist[i1.nSize];
199210 u8 *a2 = &i2.aPoslist[i2.nSize];