Lines Matching refs:nBytes

5910 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
22504 static void *memsys3Malloc(int nBytes){ in memsys3Malloc() argument
22506 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ in memsys3Malloc()
22508 p = memsys3MallocUnsafe(nBytes); in memsys3Malloc()
22526 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
22530 return sqlite3_malloc(nBytes); in memsys3Realloc()
22532 if( nBytes<=0 ){ in memsys3Realloc()
22537 if( nBytes<=nOld && nBytes>=nOld-128 ){ in memsys3Realloc()
22541 p = memsys3MallocUnsafe(nBytes); in memsys3Realloc()
22543 if( nOld<nBytes ){ in memsys3Realloc()
22546 memcpy(p, pPrior, nBytes); in memsys3Realloc()
23051 static void *memsys5Malloc(int nBytes){ in memsys5Malloc() argument
23053 if( nBytes>0 ){ in memsys5Malloc()
23055 p = memsys5MallocUnsafe(nBytes); in memsys5Malloc()
23086 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
23090 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ in memsys5Realloc()
23091 assert( nBytes>=0 ); in memsys5Realloc()
23092 if( nBytes==0 ){ in memsys5Realloc()
23096 if( nBytes<=nOld ){ in memsys5Realloc()
23099 p = memsys5Malloc(nBytes); in memsys5Realloc()
25260 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
25266 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
25268 if( nBytes==0 ){
25272 if( nBytes>=0x7fffff00 ){
25280 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
25285 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
25293 sqlite3MallocAlarm((int)nBytes);
38714 static void *winMemMalloc(int nBytes);
38716 static void *winMemRealloc(void *pPrior, int nBytes);
39726 static void *winMemMalloc(int nBytes){
39737 assert( nBytes>=0 );
39738 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
39741 nBytes, osGetLastError(), (void*)hHeap);
39769 static void *winMemRealloc(void *pPrior, int nBytes){
39780 assert( nBytes>=0 );
39782 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
39784 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
39788 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
69251 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
69254 if( !pBt->pSchema && nBytes ){
69255 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
100514 int nBytes;
100528 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
100530 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
112059 void * (*aggregate_context)(sqlite3_context*,int nBytes);
117043 int nBytes, /* Length of zSql in bytes. */
117109 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
117112 testcase( nBytes==mxLen );
117113 testcase( nBytes==mxLen+1 );
117114 if( nBytes>mxLen ){
117119 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
117125 sParse.zTail = &zSql[nBytes];
117201 int nBytes, /* Length of zSql in bytes. */
117218 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
117221 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
117279 int nBytes, /* Length of zSql in bytes. */
117284 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
117291 int nBytes, /* Length of zSql in bytes. */
117301 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
117309 int nBytes, /* Length of zSql in bytes. */
117322 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
117337 int nBytes, /* Length of zSql in bytes. */
117357 if( nBytes>=0 ){
117360 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
117361 nBytes = sz;
117364 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
117395 int nBytes, /* Length of zSql in bytes. */
117400 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
117407 int nBytes, /* Length of zSql in bytes. */
117412 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
117419 int nBytes, /* Length of zSql in bytes. */
117425 rc = sqlite3Prepare16(db,zSql,nBytes,
126320 int nBytes = sizeof(char *)*(2+pTable->nModuleArg);
126322 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
126679 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
126680 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
146538 const char *pInput, int nBytes, /* Input buffer */
156449 int nBytes; /* size of the input */
156521 const char *pInput, int nBytes, /* String to be tokenized */
156533 c->nBytes = 0;
156534 }else if( nBytes<0 ){
156535 c->nBytes = (int)strlen(pInput);
156537 c->nBytes = nBytes;
156575 while( c->iOffset<c->nBytes ){
156579 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
156585 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){