Lines Matching refs:nBytes
6416 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
28462 static void *memsys3Malloc(int nBytes){ in memsys3Malloc() argument
28464 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */ in memsys3Malloc()
28466 p = memsys3MallocUnsafe(nBytes); in memsys3Malloc()
28484 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
28488 return sqlite3_malloc(nBytes); in memsys3Realloc()
28490 if( nBytes<=0 ){ in memsys3Realloc()
28495 if( nBytes<=nOld && nBytes>=nOld-128 ){ in memsys3Realloc()
28499 p = memsys3MallocUnsafe(nBytes); in memsys3Realloc()
28501 if( nOld<nBytes ){ in memsys3Realloc()
28504 memcpy(p, pPrior, nBytes); in memsys3Realloc()
29009 static void *memsys5Malloc(int nBytes){ in memsys5Malloc() argument
29011 if( nBytes>0 ){ in memsys5Malloc()
29013 p = memsys5MallocUnsafe(nBytes); in memsys5Malloc()
29044 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
29048 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */ in memsys5Realloc()
29049 assert( nBytes>=0 ); in memsys5Realloc()
29050 if( nBytes==0 ){ in memsys5Realloc()
29054 if( nBytes<=nOld ){ in memsys5Realloc()
29057 p = memsys5Malloc(nBytes); in memsys5Realloc()
31253 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){ in sqlite3Realloc() argument
31259 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */ in sqlite3Realloc()
31261 if( nBytes==0 ){ in sqlite3Realloc()
31265 if( nBytes>=0x7fffff00 ){ in sqlite3Realloc()
31273 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes); in sqlite3Realloc()
31279 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes); in sqlite3Realloc()
31293 sqlite3MallocAlarm((int)nBytes); in sqlite3Realloc()
47598 static void *winMemMalloc(int nBytes);
47600 static void *winMemRealloc(void *pPrior, int nBytes);
48713 static void *winMemMalloc(int nBytes){ in winMemMalloc() argument
48724 assert( nBytes>=0 ); in winMemMalloc()
48725 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes); in winMemMalloc()
48728 nBytes, osGetLastError(), (void*)hHeap); in winMemMalloc()
48756 static void *winMemRealloc(void *pPrior, int nBytes){ in winMemRealloc() argument
48767 assert( nBytes>=0 ); in winMemRealloc()
48769 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes); in winMemRealloc()
48771 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes); in winMemRealloc()
48775 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(), in winMemRealloc()
82861 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
82863 assert( nBytes==0 || nBytes==sizeof(Schema) );
82865 if( !pBt->pSchema && nBytes ){
82866 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
123061 int nBytes;
123075 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
123077 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
138404 void * (*aggregate_context)(sqlite3_context*,int nBytes);
143819 int nBytes, /* Length of zSql in bytes. */
144430 int nBytes, /* Length of zSql in bytes. */
144512 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
144515 testcase( nBytes==mxLen );
144516 testcase( nBytes==mxLen+1 );
144517 if( nBytes>mxLen ){
144522 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
144528 sParse.zTail = &zSql[nBytes];
144584 int nBytes, /* Length of zSql in bytes. */
144606 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
144671 int nBytes, /* Length of zSql in bytes. */
144676 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
144683 int nBytes, /* Length of zSql in bytes. */
144693 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
144701 int nBytes, /* Length of zSql in bytes. */
144714 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
144729 int nBytes, /* Length of zSql in bytes. */
144755 if( nBytes>=0 ){
144758 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
144759 nBytes = sz;
144764 nBytes = sz;
144768 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
144780 *pzTail = (u8 *)zSql + sqlite3Utf16ByteLen(zSql, nBytes, chars_parsed);
144799 int nBytes, /* Length of zSql in bytes. */
144804 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
144811 int nBytes, /* Length of zSql in bytes. */
144816 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
144823 int nBytes, /* Length of zSql in bytes. */
144829 rc = sqlite3Prepare16(db,zSql,nBytes,
157913 sqlite3_int64 nBytes;
157918 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg);
157922 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes);
158292 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
158294 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
188552 const char *pInput, int nBytes, /* Input buffer */
198782 int nBytes; /* size of the input */
198854 const char *pInput, int nBytes, /* String to be tokenized */
198866 c->nBytes = 0;
198867 }else if( nBytes<0 ){
198868 c->nBytes = (int)strlen(pInput);
198870 c->nBytes = nBytes;
198908 while( c->iOffset<c->nBytes ){
198912 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
198918 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){