Lines Matching refs:nBytes
6205 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
27963 static void *memsys3Malloc(int nBytes){ in memsys3Malloc() argument
27965 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ in memsys3Malloc()
27967 p = memsys3MallocUnsafe(nBytes); in memsys3Malloc()
27985 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
27989 return sqlite3_malloc(nBytes); in memsys3Realloc()
27991 if( nBytes<=0 ){ in memsys3Realloc()
27996 if( nBytes<=nOld && nBytes>=nOld-128 ){ in memsys3Realloc()
28000 p = memsys3MallocUnsafe(nBytes); in memsys3Realloc()
28002 if( nOld<nBytes ){ in memsys3Realloc()
28005 memcpy(p, pPrior, nBytes); in memsys3Realloc()
28510 static void *memsys5Malloc(int nBytes){ in memsys5Malloc() argument
28512 if( nBytes>0 ){ in memsys5Malloc()
28514 p = memsys5MallocUnsafe(nBytes); in memsys5Malloc()
28545 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
28549 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ in memsys5Realloc()
28550 assert( nBytes>=0 ); in memsys5Realloc()
28551 if( nBytes==0 ){ in memsys5Realloc()
28555 if( nBytes<=nOld ){ in memsys5Realloc()
28558 p = memsys5Malloc(nBytes); in memsys5Realloc()
30739 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){ in sqlite3Realloc() argument
30745 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */ in sqlite3Realloc()
30747 if( nBytes==0 ){ in sqlite3Realloc()
30751 if( nBytes>=0x7fffff00 ){ in sqlite3Realloc()
30759 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes); in sqlite3Realloc()
30765 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes); in sqlite3Realloc()
30779 sqlite3MallocAlarm((int)nBytes); in sqlite3Realloc()
47109 static void *winMemMalloc(int nBytes);
47111 static void *winMemRealloc(void *pPrior, int nBytes);
48121 static void *winMemMalloc(int nBytes){
48132 assert( nBytes>=0 );
48133 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
48136 nBytes, osGetLastError(), (void*)hHeap);
48164 static void *winMemRealloc(void *pPrior, int nBytes){
48175 assert( nBytes>=0 );
48177 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
48179 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
48183 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
81808 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
81811 if( !pBt->pSchema && nBytes ){
81812 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
121425 int nBytes;
121438 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
121440 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
136466 void * (*aggregate_context)(sqlite3_context*,int nBytes);
141876 int nBytes, /* Length of zSql in bytes. */
142494 int nBytes, /* Length of zSql in bytes. */
142576 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
142579 testcase( nBytes==mxLen );
142580 testcase( nBytes==mxLen+1 );
142581 if( nBytes>mxLen ){
142586 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
142592 sParse.zTail = &zSql[nBytes];
142648 int nBytes, /* Length of zSql in bytes. */
142670 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
142735 int nBytes, /* Length of zSql in bytes. */
142740 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
142747 int nBytes, /* Length of zSql in bytes. */
142757 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
142765 int nBytes, /* Length of zSql in bytes. */
142778 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
142793 int nBytes, /* Length of zSql in bytes. */
142813 if( nBytes>=0 ){
142816 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
142817 nBytes = sz;
142820 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
142851 int nBytes, /* Length of zSql in bytes. */
142856 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
142863 int nBytes, /* Length of zSql in bytes. */
142868 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
142875 int nBytes, /* Length of zSql in bytes. */
142881 rc = sqlite3Prepare16(db,zSql,nBytes,
155752 sqlite3_int64 nBytes;
155757 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg);
155761 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes);
156130 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
156132 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
185639 const char *pInput, int nBytes, /* Input buffer */
195815 int nBytes; /* size of the input */
195887 const char *pInput, int nBytes, /* String to be tokenized */
195899 c->nBytes = 0;
195900 }else if( nBytes<0 ){
195901 c->nBytes = (int)strlen(pInput);
195903 c->nBytes = nBytes;
195941 while( c->iOffset<c->nBytes ){
195945 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
195951 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){