Home
last modified time | relevance | path

Searched refs:nOut (Results 1 – 25 of 47) sorted by relevance

12

/sqlite-3.40.0/src/
H A Dvdbetrace.c150 nOut = pVar->n; in sqlite3VdbeExpandSql()
152 if( nOut>SQLITE_TRACE_SIZE_LIMIT ){ in sqlite3VdbeExpandSql()
153 nOut = SQLITE_TRACE_SIZE_LIMIT; in sqlite3VdbeExpandSql()
154 while( nOut<pVar->n && (pVar->z[nOut]&0xc0)==0x80 ){ nOut++; } in sqlite3VdbeExpandSql()
157 sqlite3_str_appendf(&out, "'%.*q'", nOut, pVar->z); in sqlite3VdbeExpandSql()
159 if( nOut<pVar->n ){ in sqlite3VdbeExpandSql()
160 sqlite3_str_appendf(&out, "/*+%d bytes*/", pVar->n-nOut); in sqlite3VdbeExpandSql()
172 nOut = pVar->n; in sqlite3VdbeExpandSql()
174 if( nOut>SQLITE_TRACE_SIZE_LIMIT ) nOut = SQLITE_TRACE_SIZE_LIMIT; in sqlite3VdbeExpandSql()
176 for(i=0; i<nOut; i++){ in sqlite3VdbeExpandSql()
[all …]
H A Dtest_hexio.c158 int nIn, nOut, written; in hexio_write() local
206 int nIn, nOut; in hexio_get_int() local
221 if( nOut>=4 ){ in hexio_get_int()
225 memcpy(&aNum[4-nOut], aOut, nOut); in hexio_get_int()
304 int nOut; in utf8_to_utf8() local
315 nOut = sqlite3Utf8To8(z); in utf8_to_utf8()
316 sqlite3TestBinToHex(z,nOut); in utf8_to_utf8()
393 int nOut = 0; in make_fts3record() local
408 if( nOut+10>nAlloc ){ in make_fts3record()
418 nOut += putFts3Varint((char*)&aOut[nOut], iVal); in make_fts3record()
[all …]
H A Dwhere.c221 p->nOut = nOut; in whereOrInsert()
232 if( p->nOut>nOut ) p->nOut = nOut; in whereOrInsert()
1809 int nOut = pLoop->nOut; in whereRangeScanEst() local
1953 if( nNew<nOut ) nOut = nNew; in whereRangeScanEst()
1955 if( pLoop->nOut>nOut ){ in whereRangeScanEst()
1957 pLoop->nOut, nOut)); in whereRangeScanEst()
1960 pLoop->nOut = (LogEst)nOut; in whereRangeScanEst()
2368 pTemplate->nOut = MIN(p->nOut - 1, pTemplate->nOut); in whereLoopAdjustCost()
2377 pTemplate->nOut = MAX(p->nOut + 1, pTemplate->nOut); in whereLoopAdjustCost()
4242 pNew->nOut = sSum.a[i].nOut; in whereLoopAddOr()
[all …]
H A Dfunc.c1264 i64 nOut; /* Maximum size of zOut */ in replaceFunc() local
1293 nOut = nStr + 1; in replaceFunc()
1294 assert( nOut<SQLITE_MAX_LENGTH ); in replaceFunc()
1295 zOut = contextMalloc(context, (i64)nOut); in replaceFunc()
1306 nOut += nRep - nPattern; in replaceFunc()
1307 testcase( nOut-1==db->aLimit[SQLITE_LIMIT_LENGTH] ); in replaceFunc()
1308 testcase( nOut-2==db->aLimit[SQLITE_LIMIT_LENGTH] ); in replaceFunc()
1309 if( nOut-1>db->aLimit[SQLITE_LIMIT_LENGTH] ){ in replaceFunc()
1320 zOut = sqlite3Realloc(zOut, (int)nOut + (nOut - nStr - 1)); in replaceFunc()
1333 assert( j+nStr-i+1<=nOut ); in replaceFunc()
[all …]
H A Dos_kv.c397 static int kvvfsDecode(const char *a, char *aOut, int nOut){ in kvvfsDecode() argument
415 if( j+n>nOut ) return -1; in kvvfsDecode()
897 int nOut, in kvvfsFullPathname() argument
906 if( nOut<nPath+1 ) nPath = nOut - 1; in kvvfsFullPathname()
H A Dprintf.c239 int nOut; /* Size of the rendering buffer */ in sqlite3_str_vappendf() local
464 nOut = etBUFSIZE; in sqlite3_str_vappendf()
472 nOut = (int)n; in sqlite3_str_vappendf()
474 bufpt = &zOut[nOut-1]; in sqlite3_str_vappendf()
492 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
518 length = (int)(&zOut[nOut-1]-bufpt); in sqlite3_str_vappendf()
H A DwhereInt.h138 LogEst nOut; /* Estimated number of output rows */ member
175 LogEst nOut; /* Number of outputs for this subquery */ member
H A Dtest_onefile.c166 static int fsFullPathname(sqlite3_vfs*, const char *zName, int nOut,char *zOut);
749 int nOut, /* Size of output buffer in bytes */ in fsFullPathname() argument
753 return pParent->xFullPathname(pParent, zPath, nOut, zOut); in fsFullPathname()
H A Dtest_devsym.c287 int nOut, in devsymFullPathname() argument
290 return sqlite3OsFullPathname(g.pVfs, zPath, nOut, zOut); in devsymFullPathname()
H A Dtest_vfstrace.c697 int nOut, in vfstraceFullPathname() argument
705 rc = pRoot->xFullPathname(pRoot, zPath, nOut, zOut); in vfstraceFullPathname()
707 vfstrace_printf(pInfo, ", out=\"%.*s\"\n", nOut, zOut); in vfstraceFullPathname()
/sqlite-3.40.0/ext/misc/
H A Dcompress.c54 unsigned long int nOut; in compressFunc() local
61 nOut = 13 + nIn + (nIn+999)/1000; in compressFunc()
62 pOut = sqlite3_malloc( nOut+5 ); in compressFunc()
69 rc = compress(&pOut[j], &nOut, pIn, nIn); in compressFunc()
71 sqlite3_result_blob(context, pOut, nOut+j, sqlite3_free); in compressFunc()
90 unsigned long int nOut; in uncompressFunc() local
96 nOut = 0; in uncompressFunc()
98 nOut = (nOut<<7) | (pIn[i]&0x7f); in uncompressFunc()
101 pOut = sqlite3_malloc( nOut+1 ); in uncompressFunc()
102 rc = uncompress(pOut, &nOut, &pIn[i], nIn-i); in uncompressFunc()
[all …]
H A Dfossildelta.c635 char *aOut; int nOut; /* output delta */ in deltaCreateFunc() local
648 nOut = delta_create(aOrig, nOrig, aNew, nNew, aOut); in deltaCreateFunc()
649 if( nOut<0 ){ in deltaCreateFunc()
670 char *aOut; int nOut, nOut2; /* The output */ in deltaApplyFunc() local
681 nOut = delta_output_size(aDelta, nDelta); in deltaApplyFunc()
682 if( nOut<0 ){ in deltaApplyFunc()
686 aOut = sqlite3_malloc64((sqlite3_int64)nOut+1); in deltaApplyFunc()
691 if( nOut2!=nOut ){ in deltaApplyFunc()
719 nOut = delta_output_size(aDelta, nDelta); in deltaOutputSizeFunc()
720 if( nOut<0 ){ in deltaOutputSizeFunc()
[all …]
H A Dsqlar.c46 uLongf nOut = compressBound(nData); in sqlarCompressFunc() local
49 pOut = (Bytef*)sqlite3_malloc(nOut); in sqlarCompressFunc()
54 if( Z_OK!=compress(pOut, &nOut, pData, nData) ){ in sqlarCompressFunc()
56 }else if( nOut<nData ){ in sqlarCompressFunc()
57 sqlite3_result_blob(context, pOut, nOut, SQLITE_TRANSIENT); in sqlarCompressFunc()
H A Dspellfix.c197 int nOut = 0; in phoneticHash() local
235 assert( nOut>=0 ); in phoneticHash()
236 if( nOut==0 || c!=zOut[nOut-1] ) zOut[nOut++] = c; in phoneticHash()
238 zOut[nOut] = 0; in phoneticHash()
1719 int c, sz, nOut; in transliterate() local
1721 nOut = 0; in transliterate()
1761 zOut[nOut] = 0; in transliterate()
1772 int i, c, sz, nOut; in translen_to_charlen() local
1775 i = nOut = 0; in translen_to_charlen()
1780 nOut++; in translen_to_charlen()
[all …]
H A Dzipfile.c946 int nOut /* Expected output size */ in zipfileInflate() argument
948 u8 *aRes = sqlite3_malloc(nOut); in zipfileInflate()
959 str.avail_out = nOut; in zipfileInflate()
969 sqlite3_result_blob(pCtx, aRes, nOut, zipfileFree); in zipfileInflate()
2027 int nOut = 0; in zipfileStep() local
2028 rc = zipfileDeflate(aData, nData, &aFree, &nOut, &zErr); in zipfileStep()
2032 if( iMethod==8 || nOut<nData ){ in zipfileStep()
2034 nData = nOut; in zipfileStep()
H A Dmemvfs.c376 int nOut, in memFullPathname() argument
379 sqlite3_snprintf(nOut, zOut, "%s", zPath); in memFullPathname()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_util.c115 void testPrngArray(unsigned int iVal, unsigned int *aOut, int nOut){ in testPrngArray() argument
117 for(i=0; i<nOut; i++){ in testPrngArray()
122 void testPrngString(unsigned int iVal, char *aOut, int nOut){ in testPrngString() argument
124 for(i=0; i<(nOut-1); i++){ in testPrngString()
185 int nOut = 0; in testArgSelectX() local
195 nOut = 1; in testArgSelectX()
198 nOut++; in testArgSelectX()
203 if( nOut!=1 ){ in testArgSelectX()
208 return (nOut!=1); in testArgSelectX()
H A Dlsmtest_io.c175 int nOut = 0; in readStdin() local
182 nRead = fread(&zOut[nOut], 1, nAlloc-nOut-1, stdin); in readStdin()
185 nOut += nRead; in readStdin()
186 zOut[nOut] = '\0'; in readStdin()
H A Dlsmtest.h141 void testPrngArray(u32 iVal, u32 *aOut, int nOut);
142 void testPrngString(u32 iVal, char *aOut, int nOut);
/sqlite-3.40.0/ext/icu/
H A Dicu.c365 int nOut; /* Size of output buffer in bytes */ in icuCaseFunc16() local
381 nOut = nInput = sqlite3_value_bytes16(apArg[0]); in icuCaseFunc16()
382 if( nOut==0 ){ in icuCaseFunc16()
388 UChar *zNew = sqlite3_realloc(zOutput, nOut); in icuCaseFunc16()
397 nOut = 2*u_strToUpper(zOutput,nOut/2,zInput,nInput/2,zLocale,&status); in icuCaseFunc16()
399 nOut = 2*u_strToLower(zOutput,nOut/2,zInput,nInput/2,zLocale,&status); in icuCaseFunc16()
403 sqlite3_result_text16(p, zOutput, nOut, xFree); in icuCaseFunc16()
/sqlite-3.40.0/test/
H A Dspeedtest1.c332 sqlite3_snprintf(nOut-i, zOut+i, " billion"); in speedtest1_numbername()
337 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername()
339 sqlite3_snprintf(nOut-i, zOut+i, " million"); in speedtest1_numbername()
344 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername()
345 i += speedtest1_numbername(n/1000, zOut+i, nOut-i); in speedtest1_numbername()
346 sqlite3_snprintf(nOut-i, zOut+i, " thousand"); in speedtest1_numbername()
351 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername()
357 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername()
363 if( i && i<nOut-1 ) zOut[i++] = ' '; in speedtest1_numbername()
364 sqlite3_snprintf(nOut-i, zOut+i, "%s", ones[n]); in speedtest1_numbername()
[all …]
/sqlite-3.40.0/ext/wasm/api/
H A Dsqlite3-api-opfs.js821 xFullPathname: function(pVfs,zName,nOut,pOut){ argument
824 const i = wasm.cstrncpy(pOut, zName, nOut);
825 return i<nOut ? 0 : capi.SQLITE_CANTOPEN
828 xGetLastError: function(pVfs,nOut,pOut){ argument
872 vfsSyncWrappers.xRandomness = function(pVfs, nOut, pOut){
875 for(; i < nOut; ++i) heap[pOut + i] = (Math.random()*255000) & 0xFF;
H A Dsqlite3-wasm.c933 sqlite3_int64 *nOut, unsigned int mFlags ){ in sqlite3_wasm_db_serialize() argument
936 if(nOut) *nOut = 0; in sqlite3_wasm_db_serialize()
937 z = sqlite3_serialize(pDb, "main", nOut, mFlags); in sqlite3_wasm_db_serialize()
H A Dsqlite3-api-prologue.js1336 const nOut = wasm.getMemValue(pSize, 'i64');
1337 rc = nOut
1338 ? wasm.heap8u().slice(pOut, pOut + Number(nOut))
/sqlite-3.40.0/ext/fts3/
H A Dfts3.c2768 int nOut = 0; in sqlite3Fts3FirstFilter() local
2775 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iDelta); in sqlite3Fts3FirstFilter()
2776 pOut[nOut++] = 0x02; in sqlite3Fts3FirstFilter()
2788 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iDelta); in sqlite3Fts3FirstFilter()
2791 pOut[nOut++] = 0x01; in sqlite3Fts3FirstFilter()
2792 nOut += sqlite3Fts3PutVarint(&pOut[nOut], iCol); in sqlite3Fts3FirstFilter()
2793 pOut[nOut++] = 0x02; in sqlite3Fts3FirstFilter()
2798 pOut[nOut++] = 0x00; in sqlite3Fts3FirstFilter()
2801 return nOut; in sqlite3Fts3FirstFilter()
2816 int nOut = 0; in fts3TermSelectFinishMerge() local
[all …]

12