Lines Matching refs:nBytes

5935 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
25838 static void *memsys3Malloc(int nBytes){
25840 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
25842 p = memsys3MallocUnsafe(nBytes);
25860 static void *memsys3Realloc(void *pPrior, int nBytes){
25864 return sqlite3_malloc(nBytes);
25866 if( nBytes<=0 ){
25871 if( nBytes<=nOld && nBytes>=nOld-128 ){
25875 p = memsys3MallocUnsafe(nBytes);
25877 if( nOld<nBytes ){
25880 memcpy(p, pPrior, nBytes);
26385 static void *memsys5Malloc(int nBytes){
26387 if( nBytes>0 ){
26389 p = memsys5MallocUnsafe(nBytes);
26420 static void *memsys5Realloc(void *pPrior, int nBytes){
26424 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
26425 assert( nBytes>=0 );
26426 if( nBytes==0 ){
26430 if( nBytes<=nOld ){
26433 p = memsys5Malloc(nBytes);
28533 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
28539 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
28541 if( nBytes==0 ){
28545 if( nBytes>=0x7fffff00 ){
28553 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
28559 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
28572 sqlite3MallocAlarm((int)nBytes);
42826 static void *winMemMalloc(int nBytes);
42828 static void *winMemRealloc(void *pPrior, int nBytes);
43838 static void *winMemMalloc(int nBytes){
43849 assert( nBytes>=0 );
43850 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
43853 nBytes, osGetLastError(), (void*)hHeap);
43881 static void *winMemRealloc(void *pPrior, int nBytes){
43892 assert( nBytes>=0 );
43894 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
43896 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
43900 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
76260 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
76263 if( !pBt->pSchema && nBytes ){
76264 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
113090 int nBytes;
113103 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
113105 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
127347 void * (*aggregate_context)(sqlite3_context*,int nBytes);
132300 int nBytes, /* Length of zSql in bytes. */
132873 int nBytes, /* Length of zSql in bytes. */
132942 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
132945 testcase( nBytes==mxLen );
132946 testcase( nBytes==mxLen+1 );
132947 if( nBytes>mxLen ){
132952 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
132958 sParse.zTail = &zSql[nBytes];
133014 int nBytes, /* Length of zSql in bytes. */
133036 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
133100 int nBytes, /* Length of zSql in bytes. */
133105 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
133112 int nBytes, /* Length of zSql in bytes. */
133122 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
133130 int nBytes, /* Length of zSql in bytes. */
133143 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
133158 int nBytes, /* Length of zSql in bytes. */
133178 if( nBytes>=0 ){
133181 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
133182 nBytes = sz;
133185 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
133216 int nBytes, /* Length of zSql in bytes. */
133221 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
133228 int nBytes, /* Length of zSql in bytes. */
133233 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
133240 int nBytes, /* Length of zSql in bytes. */
133246 rc = sqlite3Prepare16(db,zSql,nBytes,
144834 sqlite3_int64 nBytes;
144839 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg);
144843 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes);
145208 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
145210 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
172134 const char *pInput, int nBytes, /* Input buffer */
182216 int nBytes; /* size of the input */
182288 const char *pInput, int nBytes, /* String to be tokenized */
182300 c->nBytes = 0;
182301 }else if( nBytes<0 ){
182302 c->nBytes = (int)strlen(pInput);
182304 c->nBytes = nBytes;
182342 while( c->iOffset<c->nBytes ){
182346 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
182352 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){