| /sqlite-3.40.0/ext/misc/ |
| H A D | eval.c | 28 sqlite3_int64 nUsed; /* Number of bytes of z[] actually used */ member 41 if( (sqlite3_int64)sz+p->nUsed+p->szSep+1 > p->nAlloc ){ in callback() 55 if( p->nUsed>0 ){ in callback() 56 memcpy(&p->z[p->nUsed], p->zSep, p->szSep); in callback() 57 p->nUsed += p->szSep; in callback() 59 memcpy(&p->z[p->nUsed], z, sz); in callback() 60 p->nUsed += sz; in callback() 100 sqlite3_result_text(context, x.z, (int)x.nUsed, sqlite3_free); in sqlEvalFunc()
|
| H A D | percentile.c | 74 unsigned nUsed; /* Number of slots actually used in a[] */ member 152 if( p->nUsed>=p->nAlloc ){ in percentStep() 164 p->a[p->nUsed++] = y; in percentStep() 190 if( p->nUsed ){ in percentFinal() 191 qsort(p->a, p->nUsed, sizeof(double), doubleCmp); in percentFinal() 192 ix = (p->rPct-1.0)*(p->nUsed-1)*0.01; in percentFinal() 194 i2 = ix==(double)i1 || i1==p->nUsed-1 ? i1 : i1+1; in percentFinal()
|
| H A D | nextchar.c | 70 int nUsed; /* Space used in aResult */ member 82 for(i=0; i<p->nUsed; i++){ in nextCharAppend() 85 if( p->nUsed+1 > p->nAlloc ){ in nextCharAppend() 97 p->aResult[p->nUsed++] = c; in nextCharAppend() 272 pRes = sqlite3_malloc64( c.nUsed*4 + 1 ); in nextCharFunc() 278 for(i=0; i<c.nUsed; i++){ in nextCharFunc()
|
| /sqlite-3.40.0/src/ |
| H A D | json.c | 158 p->nUsed = 0; in jsonZero() 222 p->nUsed += N; in jsonAppendRaw() 233 p->nUsed += (int)strlen(p->zBuf+p->nUsed); in jsonPrintf() 240 p->zBuf[p->nUsed++] = c; in jsonAppendChar() 249 c = p->zBuf[p->nUsed-1]; in jsonAppendSeparator() 1994 pStr->nUsed--; in jsonArrayCompute() 2045 if( i<pStr->nUsed ){ in jsonGroupInverse() 2046 pStr->nUsed -= i; in jsonGroupInverse() 2048 z[pStr->nUsed] = 0; in jsonGroupInverse() 2050 pStr->nUsed = 1; in jsonGroupInverse() [all …]
|
| H A D | malloc.c | 98 sqlite3_int64 nUsed; in sqlite3_soft_heap_limit64() local 113 nUsed = sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED); in sqlite3_soft_heap_limit64() 114 AtomicStore(&mem0.nearlyFull, n>0 && n<=nUsed); in sqlite3_soft_heap_limit64() 243 sqlite3_int64 nUsed = sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED); in mallocWithAlarm() local 244 if( nUsed >= mem0.alarmThreshold - nFull ){ in mallocWithAlarm() 248 nUsed = sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED); in mallocWithAlarm() 249 if( nUsed >= mem0.hardLimit - nFull ){ in mallocWithAlarm() 529 sqlite3_int64 nUsed; in sqlite3Realloc() local 533 if( nDiff>0 && (nUsed = sqlite3StatusValue(SQLITE_STATUS_MEMORY_USED)) >= in sqlite3Realloc() 536 if( mem0.hardLimit>0 && nUsed >= mem0.hardLimit - nDiff ){ in sqlite3Realloc()
|
| H A D | printf.c | 159 if( p->nArg<=p->nUsed ) return 0; in getIntArg() 160 return sqlite3_value_int64(p->apArg[p->nUsed++]); in getIntArg() 163 if( p->nArg<=p->nUsed ) return 0.0; in getDoubleArg() 164 return sqlite3_value_double(p->apArg[p->nUsed++]); in getDoubleArg() 167 if( p->nArg<=p->nUsed ) return 0; in getTextArg() 168 return (char*)sqlite3_value_text(p->apArg[p->nUsed++]); in getTextArg()
|
| H A D | os_unix.c | 6462 if( pPath->nUsed<=1 ){ in appendOnePathElement() 6467 while( pPath->zOut[--pPath->nUsed]!='/' ){} in appendOnePathElement() 6471 if( pPath->nUsed + nName + 2 >= pPath->nOut ){ in appendOnePathElement() 6475 pPath->zOut[pPath->nUsed++] = '/'; in appendOnePathElement() 6476 memcpy(&pPath->zOut[pPath->nUsed], zName, nName); in appendOnePathElement() 6477 pPath->nUsed += nName; in appendOnePathElement() 6482 pPath->zOut[pPath->nUsed] = 0; in appendOnePathElement() 6502 pPath->nUsed = 0; in appendOnePathElement() 6504 pPath->nUsed -= nName + 1; in appendOnePathElement() 6548 path.nUsed = 0; in unixFullPathname() [all …]
|
| H A D | test1.c | 778 int nUsed; /* Space used */ member 787 if( p->nUsed + n + 2 > p->nAlloc ){ in dstrAppend() 798 if( divider && p->nUsed>0 ){ in dstrAppend() 799 p->z[p->nUsed++] = divider; in dstrAppend() 801 memcpy(&p->z[p->nUsed], z, n+1); in dstrAppend() 802 p->nUsed += n; in dstrAppend() 842 sqlite3_result_text(context, x.z, x.nUsed, SQLITE_TRANSIENT); in sqlite3ExecFunc()
|
| H A D | func.c | 288 x.nUsed = 0; in printfFunc()
|
| H A D | sqliteInt.h | 4499 int nUsed; /* Number of arguments used so far */ member
|
| /sqlite-3.40.0/ext/rbu/ |
| H A D | rbu.c | 144 sqlite3_int64 nUsed; in main() local 146 sqlite3_status64(SQLITE_STATUS_MEMORY_USED, &nUsed, &nHighwater, 0); in main() 147 fprintf(stdout, "memory used=%lld highwater=%lld", nUsed, nHighwater); in main() 187 sqlite3_int64 nUsed; in main() local 189 sqlite3_status64(SQLITE_STATUS_MEMORY_USED, &nUsed, &nHighwater, 0); in main() 190 fprintf(stdout, "memory used=%lld highwater=%lld\n", nUsed, nHighwater); in main()
|
| /sqlite-3.40.0/tool/ |
| H A D | fuzzershell.c | 290 sqlite3_int64 nUsed; /* Number of bytes of z[] actually used */ member 302 if( (sqlite3_int64)sz+p->nUsed+p->szSep+1 > p->nAlloc ){ in callback() 316 if( p->nUsed>0 ){ in callback() 317 memcpy(&p->z[p->nUsed], p->zSep, p->szSep); in callback() 318 p->nUsed += p->szSep; in callback() 320 memcpy(&p->z[p->nUsed], z, sz); in callback() 321 p->nUsed += sz; in callback() 361 sqlite3_result_text(context, x.z, (int)x.nUsed, sqlite3_free); in sqlEvalFunc()
|
| H A D | sqldiff.c | 55 int nUsed; /* Bytes actually used in z[] */ member 64 p->nUsed = 0; in strInit() 112 sqlite3_vsnprintf(p->nAlloc-p->nUsed, p->z+p->nUsed, zFormat, ap); in strPrintf() 114 nNew = (int)strlen(p->z + p->nUsed); in strPrintf() 118 if( p->nUsed+nNew < p->nAlloc-1 ){ in strPrintf() 119 p->nUsed += nNew; in strPrintf()
|
| H A D | lemon.c | 96 int nUsed = 0; in lemon_vsprintf() local 103 lemon_addtext(str, &nUsed, &zFormat[j], i-j, 0); in lemon_vsprintf() 114 lemon_addtext(str, &nUsed, "-", 1, iWidth); in lemon_vsprintf() 117 lemon_addtext(str, &nUsed, "0", 1, iWidth); in lemon_vsprintf() 125 lemon_addtext(str, &nUsed, &zTemp[sizeof(zTemp)-k], k, iWidth); in lemon_vsprintf() 128 lemon_addtext(str, &nUsed, z, -1, iWidth); in lemon_vsprintf() 133 lemon_addtext(str, &nUsed, z, k, iWidth); in lemon_vsprintf() 135 lemon_addtext(str, &nUsed, "%", 1, 0); in lemon_vsprintf() 143 lemon_addtext(str, &nUsed, &zFormat[j], i-j, 0); in lemon_vsprintf() 144 return nUsed; in lemon_vsprintf()
|
| /sqlite-3.40.0/test/ |
| H A D | speedtest1.c | 673 int nUsed; member 676 if( p->nUsed+n >= p->nAlloc ){ in groupAppend() 683 memcpy(p->z+p->nUsed, z, n); in groupAppend() 684 p->nUsed += n; in groupAppend() 700 int firstTerm = p->nUsed==0; in groupStep() 720 p->z[p->nUsed] = 0; in groupFinal() 721 sqlite3_result_text(context, p->z, p->nUsed, sqlite3_free); in groupFinal()
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_file.c | 3155 int nUsed, in checkBlocks() argument
|