Lines Matching defs:nBytes
1751 ** The xRandomness() function attempts to return nBytes bytes
6205 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
27697 ** Called when we are unable to satisfy an allocation of nBytes.
27812 ** Return a block of memory of at least nBytes in size.
27961 ** Allocate nBytes of memory.
27963 static void *memsys3Malloc(int nBytes){
27965 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
27967 p = memsys3MallocUnsafe(nBytes);
27985 static void *memsys3Realloc(void *pPrior, int nBytes){
27989 return sqlite3_malloc(nBytes);
27991 if( nBytes<=0 ){
27996 if( nBytes<=nOld && nBytes>=nOld-128 ){
28000 p = memsys3MallocUnsafe(nBytes);
28002 if( nOld<nBytes ){
28005 memcpy(p, pPrior, nBytes);
28365 ** Return a block of memory of at least nBytes in size.
28366 ** Return NULL if unable. Return NULL if nBytes==0.
28508 ** Allocate nBytes of memory.
28510 static void *memsys5Malloc(int nBytes){
28512 if( nBytes>0 ){
28514 p = memsys5MallocUnsafe(nBytes);
28539 ** nBytes is always a value obtained from a prior call to
28540 ** memsys5Round(). Hence nBytes is always a non-negative power
28541 ** of two. If nBytes==0 that means that an oversize allocation
28545 static void *memsys5Realloc(void *pPrior, int nBytes){
28549 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
28550 assert( nBytes>=0 );
28551 if( nBytes==0 ){
28555 if( nBytes<=nOld ){
28558 p = memsys5Malloc(nBytes);
30739 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
30745 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
30747 if( nBytes==0 ){
30751 if( nBytes>=0x7fffff00 ){
30759 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
30765 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
30779 sqlite3MallocAlarm((int)nBytes);
42263 ** file-control operation. Enlarge the database to nBytes in size
42265 ** nBytes or larger, this routine is a no-op.
47109 static void *winMemMalloc(int nBytes);
47111 static void *winMemRealloc(void *pPrior, int nBytes);
48119 ** Allocate nBytes of memory.
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(),
81794 ** The first time this is called on a shared-btree, nBytes bytes of memory
81796 ** call the nBytes parameter is ignored and a pointer to the same blob
81799 ** If the nBytes parameter is 0 and the blob of memory has not yet been
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 */
185670 ** nul-terminated. This should either be fixed, or pInput/nBytes
195815 int nBytes; /* size of the input */
195881 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
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]) ){
204333 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
217306 ** string to be tokenized is pInput[0..nBytes-1]. A cursor