Home
last modified time | relevance | path

Searched refs:nBytes (Results 1 – 22 of 22) sorted by relevance

/sqlite-3.40.0/src/
H A Dprepare.c73 int nBytes, /* Length of zSql in bytes. */
753 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){ in sqlite3Prepare()
756 testcase( nBytes==mxLen ); in sqlite3Prepare()
757 testcase( nBytes==mxLen+1 ); in sqlite3Prepare()
758 if( nBytes>mxLen ){ in sqlite3Prepare()
763 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes); in sqlite3Prepare()
769 sParse.zTail = &zSql[nBytes]; in sqlite3Prepare()
954 rc = sqlite3LockAndPrepare(db,zSql,nBytes, in sqlite3_prepare_v3()
989 if( nBytes>=0 ){ in sqlite3Prepare16()
993 nBytes = sz; in sqlite3Prepare16()
[all …]
H A Dmem5.c356 static void *memsys5Malloc(int nBytes){ in memsys5Malloc() argument
358 if( nBytes>0 ){ in memsys5Malloc()
360 p = memsys5MallocUnsafe(nBytes); in memsys5Malloc()
391 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
395 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ in memsys5Realloc()
396 assert( nBytes>=0 ); in memsys5Realloc()
397 if( nBytes==0 ){ in memsys5Realloc()
401 if( nBytes<=nOld ){ in memsys5Realloc()
404 p = memsys5Malloc(nBytes); in memsys5Realloc()
H A Dmem3.c499 static void *memsys3Malloc(int nBytes){ in memsys3Malloc() argument
501 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ in memsys3Malloc()
503 p = memsys3MallocUnsafe(nBytes); in memsys3Malloc()
521 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
525 return sqlite3_malloc(nBytes); in memsys3Realloc()
527 if( nBytes<=0 ){ in memsys3Realloc()
532 if( nBytes<=nOld && nBytes>=nOld-128 ){ in memsys3Realloc()
536 p = memsys3MallocUnsafe(nBytes); in memsys3Realloc()
538 if( nOld<nBytes ){ in memsys3Realloc()
541 memcpy(p, pPrior, nBytes); in memsys3Realloc()
H A Dmalloc.c505 void *sqlite3Realloc(void *pOld, u64 nBytes){ in sqlite3Realloc() argument
511 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */ in sqlite3Realloc()
513 if( nBytes==0 ){ in sqlite3Realloc()
517 if( nBytes>=0x7fffff00 ){ in sqlite3Realloc()
525 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes); in sqlite3Realloc()
531 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes); in sqlite3Realloc()
544 sqlite3MallocAlarm((int)nBytes); in sqlite3Realloc()
H A Dtest8.c185 int nBytes; in getColumnNames() local
192 nBytes = sizeof(char *) * nCol; in getColumnNames()
199 nBytes += (int)strlen(zName)+1; in getColumnNames()
201 aCol = (char **)sqlite3MallocZero(nBytes); in getColumnNames()
213 sqlite3_snprintf(nBytes, zSpace, "%s", sqlite3_column_name(pStmt,ii)); in getColumnNames()
216 assert( (zSpace-nBytes)==(char *)aCol ); in getColumnNames()
H A Dvtab.c361 sqlite3_int64 nBytes; in addModuleArgument() local
366 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg); in addModuleArgument()
370 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes); in addModuleArgument()
735 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)* in growVTrans() local
737 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes); in growVTrans()
H A Dos_win.c458 static void *winMemMalloc(int nBytes);
460 static void *winMemRealloc(void *pPrior, int nBytes);
1470 static void *winMemMalloc(int nBytes){ in winMemMalloc() argument
1481 assert( nBytes>=0 ); in winMemMalloc()
1482 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes); in winMemMalloc()
1485 nBytes, osGetLastError(), (void*)hHeap); in winMemMalloc()
1513 static void *winMemRealloc(void *pPrior, int nBytes){ in winMemRealloc() argument
1524 assert( nBytes>=0 ); in winMemRealloc()
1526 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes); in winMemRealloc()
1528 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes); in winMemRealloc()
[all …]
H A Dsqlite3ext.h33 void * (*aggregate_context)(sqlite3_context*,int nBytes);
H A Dbuild.c58 int nBytes; in lockTable() local
71 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1); in lockTable()
73 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes); in lockTable()
H A Dbtree.c10902 void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){ in sqlite3BtreeSchema() argument
10905 if( !pBt->pSchema && nBytes ){ in sqlite3BtreeSchema()
10906 pBt->pSchema = sqlite3DbMallocZero(0, nBytes); in sqlite3BtreeSchema()
H A Dsqlite.h.in1428 ** The xRandomness() function attempts to return nBytes bytes
5694 void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
/sqlite-3.40.0/ext/fts2/
H A Dfts2_tokenizer1.c46 int nBytes; /* size of the input */ member
119 const char *pInput, int nBytes, /* String to be tokenized */ in simpleOpen() argument
129 c->nBytes = 0; in simpleOpen()
130 }else if( nBytes<0 ){ in simpleOpen()
131 c->nBytes = (int)strlen(pInput); in simpleOpen()
133 c->nBytes = nBytes; in simpleOpen()
171 while( c->iOffset<c->nBytes ){ in simpleNext()
175 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){ in simpleNext()
181 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){ in simpleNext()
H A Dfts2_tokenizer.h95 const char *pInput, int nBytes, /* Input buffer */
/sqlite-3.40.0/ext/fts1/
H A Dfts1_tokenizer1.c36 int nBytes; /* size of the input */ member
107 const char *pInput, int nBytes, /* String to be tokenized */ in simpleOpen() argument
117 c->nBytes = 0; in simpleOpen()
118 }else if( nBytes<0 ){ in simpleOpen()
119 c->nBytes = (int)strlen(pInput); in simpleOpen()
121 c->nBytes = nBytes; in simpleOpen()
159 while( c->iOffset<c->nBytes ){ in simpleNext()
163 while( c->iOffset<c->nBytes && isDelim(t, p[c->iOffset]) ){ in simpleNext()
169 while( c->iOffset<c->nBytes && !isDelim(t, p[c->iOffset]) ){ in simpleNext()
H A Dsimple_tokenizer.c39 int nBytes; /* size of the input */ member
92 const char *pInput, int nBytes, in simpleOpen() argument
99 c->nBytes = nBytes<0 ? (int) strlen(pInput) : nBytes; in simpleOpen()
130 while( c->pCurrent-c->pInput<c->nBytes ){ in simpleNext()
H A Dtokenizer.h60 const char *pInput, int nBytes,
H A Dfts1_tokenizer.h60 const char *pInput, int nBytes,
/sqlite-3.40.0/ext/fts3/
H A Dfts3_tokenizer1.c43 int nBytes; /* size of the input */ member
115 const char *pInput, int nBytes, /* String to be tokenized */ in simpleOpen() argument
127 c->nBytes = 0; in simpleOpen()
128 }else if( nBytes<0 ){ in simpleOpen()
129 c->nBytes = (int)strlen(pInput); in simpleOpen()
131 c->nBytes = nBytes; in simpleOpen()
169 while( c->iOffset<c->nBytes ){ in simpleNext()
173 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){ in simpleNext()
179 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){ in simpleNext()
H A Dfts3_test.c385 const char *pInput, int nBytes, /* String to be tokenized */ in testTokenizerOpen() argument
399 if( nBytes<0 ){ in testTokenizerOpen()
402 pCsr->nInput = nBytes; in testTokenizerOpen()
H A Dfts3_tokenizer.h95 const char *pInput, int nBytes, /* Input buffer */
/sqlite-3.40.0/test/
H A Dcapi3.test1099 # Ticket #1650: Honor the nBytes parameter to sqlite3_prepare.
1240 # Ticket #3134. Prepare a statement with an nBytes parameter of 0.
H A Dcapi3c.test1025 # Ticket #1650: Honor the nBytes parameter to sqlite3_prepare.