Lines Matching refs:nBytes

4908 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
21589 static void *memsys3Malloc(int nBytes){ in memsys3Malloc() argument
21591 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ in memsys3Malloc()
21593 p = memsys3MallocUnsafe(nBytes); in memsys3Malloc()
21611 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
21615 return sqlite3_malloc(nBytes); in memsys3Realloc()
21617 if( nBytes<=0 ){ in memsys3Realloc()
21622 if( nBytes<=nOld && nBytes>=nOld-128 ){ in memsys3Realloc()
21626 p = memsys3MallocUnsafe(nBytes); in memsys3Realloc()
21628 if( nOld<nBytes ){ in memsys3Realloc()
21631 memcpy(p, pPrior, nBytes); in memsys3Realloc()
22136 static void *memsys5Malloc(int nBytes){ in memsys5Malloc() argument
22138 if( nBytes>0 ){ in memsys5Malloc()
22140 p = memsys5MallocUnsafe(nBytes); in memsys5Malloc()
22171 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
22175 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ in memsys5Realloc()
22176 assert( nBytes>=0 ); in memsys5Realloc()
22177 if( nBytes==0 ){ in memsys5Realloc()
22181 if( nBytes<=nOld ){ in memsys5Realloc()
22184 p = memsys5Malloc(nBytes); in memsys5Realloc()
24327 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
24333 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
24335 if( nBytes==0 ){
24339 if( nBytes>=0x7fffff00 ){
24347 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
24352 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
24360 sqlite3MallocAlarm((int)nBytes);
37553 static void *winMemMalloc(int nBytes);
37555 static void *winMemRealloc(void *pPrior, int nBytes);
38565 static void *winMemMalloc(int nBytes){
38576 assert( nBytes>=0 );
38577 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
38580 nBytes, osGetLastError(), (void*)hHeap);
38608 static void *winMemRealloc(void *pPrior, int nBytes){
38619 assert( nBytes>=0 );
38621 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
38623 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
38627 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
67658 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
67661 if( !pBt->pSchema && nBytes ){
67662 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
97454 int nBytes;
97466 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
97468 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
108868 void * (*aggregate_context)(sqlite3_context*,int nBytes);
113151 int nBytes, /* Length of zSql in bytes. */
113214 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
113217 testcase( nBytes==mxLen );
113218 testcase( nBytes==mxLen+1 );
113219 if( nBytes>mxLen ){
113224 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
113230 pParse->zTail = &zSql[nBytes];
113308 int nBytes, /* Length of zSql in bytes. */
113325 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
113328 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
113384 int nBytes, /* Length of zSql in bytes. */
113389 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
113396 int nBytes, /* Length of zSql in bytes. */
113401 rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail);
113414 int nBytes, /* Length of zSql in bytes. */
113434 if( nBytes>=0 ){
113437 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
113438 nBytes = sz;
113441 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
113472 int nBytes, /* Length of zSql in bytes. */
113477 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
113484 int nBytes, /* Length of zSql in bytes. */
113489 rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
122011 int nBytes = sizeof(char *)*(2+pTable->nModuleArg);
122013 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
122371 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
122372 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
141309 const char *pInput, int nBytes, /* Input buffer */
151183 int nBytes; /* size of the input */
151255 const char *pInput, int nBytes, /* String to be tokenized */
151267 c->nBytes = 0;
151268 }else if( nBytes<0 ){
151269 c->nBytes = (int)strlen(pInput);
151271 c->nBytes = nBytes;
151309 while( c->iOffset<c->nBytes ){
151313 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
151319 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){