Lines Matching refs:nSize
33011 i64 nSize; /* Required file size */
33018 nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
33019 if( nSize>(i64)buf.st_size ){
33027 err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
33045 for(/*no-op*/; iWrite<nSize+nBlk-1; iWrite+=nBlk ){
33046 if( iWrite>=nSize ) iWrite = nSize - 1;
54763 i64 nSize; /* Size of log file */
54788 rc = sqlite3OsFileSize(pWal->pWalFd, &nSize);
54793 if( nSize>WAL_HDRSIZE ){
54859 for(iOffset=WAL_HDRSIZE; (iOffset+szFrame)<=nSize; iOffset+=szFrame){
55470 i64 nSize; /* Current size of database file */
55485 rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
55486 if( rc==SQLITE_OK && nSize<nReq ){
57614 u16 nSize; /* Size of the cell content on the main b-tree page */
59201 pInfo->nSize = (u16)(&pInfo->pPayload[pInfo->nLocal] - pCell) + 4;
59229 pInfo->nSize = 4 + getVarint(&pCell[4], (u64*)&pInfo->nKey);
59296 pInfo->nSize = nPayload + (u16)(pIter - pCell);
59297 if( pInfo->nSize<4 ) pInfo->nSize = 4;
59333 pInfo->nSize = nPayload + (u16)(pIter - pCell);
59334 if( pInfo->nSize<4 ) pInfo->nSize = 4;
59363 u32 nSize; /* Size value to return */
59374 nSize = *pIter;
59375 if( nSize>=0x80 ){
59377 nSize &= 0x7f;
59379 nSize = (nSize<<7) | (*++pIter & 0x7f);
59390 testcase( nSize==pPage->maxLocal );
59391 testcase( nSize==pPage->maxLocal+1 );
59392 if( nSize<=pPage->maxLocal ){
59393 nSize += (u32)(pIter - pCell);
59394 if( nSize<4 ) nSize = 4;
59397 nSize = minLocal + (nSize - minLocal) % (pPage->pBt->usableSize - 4);
59398 testcase( nSize==pPage->maxLocal );
59399 testcase( nSize==pPage->maxLocal+1 );
59400 if( nSize>pPage->maxLocal ){
59401 nSize = minLocal;
59403 nSize += 4 + (u16)(pIter - pCell);
59405 assert( nSize==debuginfo.nSize || CORRUPT_DB );
59406 return (u16)nSize;
59426 assert( debuginfo.nSize==(u16)(pIter - pCell) || CORRUPT_DB );
59451 Pgno ovfl = get4byte(&pCell[info.nSize-4]);
61490 && pCell+info.nSize-1<=pPage->aData+pPage->maskPage
61491 && iFrom==get4byte(pCell+info.nSize-4)
61493 put4byte(pCell+info.nSize-4, iTo);
62388 if( pCur->info.nSize==0 ){
62853 assert( pCur->info.nSize>0 );
62901 pCur->info.nSize = 0;
62950 pCur->info.nSize = 0;
63030 pCur->info.nSize = 0;
63093 assert( pCur->info.nSize==0 );
63408 pCur->info.nSize = 0;
63523 pCur->info.nSize = 0;
63569 assert( pCur->info.nSize==0 );
63606 assert( pCur->info.nSize==0 );
63626 pCur->info.nSize = 0;
64134 *pnSize = info.nSize;
64138 if( pCell+info.nSize-1 > pPage->aData+pPage->maskPage ){
64141 ovflPgno = get4byte(pCell + info.nSize - 4);
64283 assert( *pnSize == info.nSize );
64994 Pgno ovfl = get4byte(&z[info.nSize-4]);
66209 pCur->info.nSize = 0;
67300 if( pc+info.nSize>usableSize ){
67318 assert( pc + info.nSize - 4 <= usableSize );
67320 pgnoOvfl = get4byte(&pCell[info.nSize - 4]);
67345 btreeHeapInsert(heap, (pc<<16)|(pc+info.nSize-1));
87453 int nSize; /* Bytes of data currently in memory */
87634 p->nSize = iAmt + iOfst;
87652 p->nSize = 0;
90278 int nSize;
90283 nSize = EXPR_FULLSIZE;
90290 nSize = EXPR_REDUCEDSIZE | EP_Reduced;
90293 nSize = EXPR_TOKENONLYSIZE | EP_TokenOnly;
90296 return nSize;
90382 u32 nSize = (u32)exprStructSize(p);
90383 memcpy(zAlloc, p, nSize);
90384 if( nSize<EXPR_FULLSIZE ){
90385 memset(&zAlloc[nSize], 0, EXPR_FULLSIZE-nSize);
147953 static int fts3auxGrowStatArray(Fts3auxCursor *pCsr, int nSize){
147954 if( nSize>pCsr->nStat ){
147957 sizeof(struct Fts3auxColstats) * nSize
147961 sizeof(struct Fts3auxColstats) * (nSize - pCsr->nStat)
147964 pCsr->nStat = nSize;
152027 int nSize; /* Size of allocation at aData */
154062 pWriter->nSize = p->nNodeSize;
154128 if( nReq>pWriter->nSize ){
154132 pWriter->nSize = nReq;
154134 assert( nData+nReq<=pWriter->nSize );
154918 i64 nSize = 0, dummy;
154919 fts3ReadEndBlockField(pRange, 2, &dummy, &nSize);
154920 if( nSize<=0 || nSize>nLimit ){
185289 int nSize;
189706 u8 *p = pIter->aPoslist + pIter->nSize + pIter->nPoslist;
189720 pIter->nSize = fts5GetVarint32(p, nPos);
189724 pIter->nSize = 1;
189856 fts5BufferSafeAppendBlob(&out, i1.aPoslist, i1.nPoslist+i1.nSize);
189863 fts5BufferSafeAppendBlob(&out, i2.aPoslist, i2.nPoslist+i2.nSize);
189873 u8 *a1 = &i1.aPoslist[i1.nSize];
189874 u8 *a2 = &i2.aPoslist[i2.nSize];