Lines Matching defs:nBytes
1749 ** The xRandomness() function attempts to return nBytes bytes
6186 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
27418 ** Called when we are unable to satisfy an allocation of nBytes.
27533 ** Return a block of memory of at least nBytes in size.
27682 ** Allocate nBytes of memory.
27684 static void *memsys3Malloc(int nBytes){
27686 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
27688 p = memsys3MallocUnsafe(nBytes);
27706 static void *memsys3Realloc(void *pPrior, int nBytes){
27710 return sqlite3_malloc(nBytes);
27712 if( nBytes<=0 ){
27717 if( nBytes<=nOld && nBytes>=nOld-128 ){
27721 p = memsys3MallocUnsafe(nBytes);
27723 if( nOld<nBytes ){
27726 memcpy(p, pPrior, nBytes);
28086 ** Return a block of memory of at least nBytes in size.
28087 ** Return NULL if unable. Return NULL if nBytes==0.
28229 ** Allocate nBytes of memory.
28231 static void *memsys5Malloc(int nBytes){
28233 if( nBytes>0 ){
28235 p = memsys5MallocUnsafe(nBytes);
28260 ** nBytes is always a value obtained from a prior call to
28261 ** memsys5Round(). Hence nBytes is always a non-negative power
28262 ** of two. If nBytes==0 that means that an oversize allocation
28266 static void *memsys5Realloc(void *pPrior, int nBytes){
28270 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
28271 assert( nBytes>=0 );
28272 if( nBytes==0 ){
28276 if( nBytes<=nOld ){
28279 p = memsys5Malloc(nBytes);
30441 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
30447 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
30449 if( nBytes==0 ){
30453 if( nBytes>=0x7fffff00 ){
30461 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
30467 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
30480 sqlite3MallocAlarm((int)nBytes);
41919 ** file-control operation. Enlarge the database to nBytes in size
41921 ** nBytes or larger, this routine is a no-op.
46758 static void *winMemMalloc(int nBytes);
46760 static void *winMemRealloc(void *pPrior, int nBytes);
47768 ** Allocate nBytes of memory.
47770 static void *winMemMalloc(int nBytes){
47781 assert( nBytes>=0 );
47782 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
47785 nBytes, osGetLastError(), (void*)hHeap);
47813 static void *winMemRealloc(void *pPrior, int nBytes){
47824 assert( nBytes>=0 );
47826 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
47828 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
47832 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
81354 ** The first time this is called on a shared-btree, nBytes bytes of memory
81356 ** call the nBytes parameter is ignored and a pointer to the same blob
81359 ** If the nBytes parameter is 0 and the blob of memory has not yet been
81368 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
81371 if( !pBt->pSchema && nBytes ){
81372 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
120675 int nBytes;
120688 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
120690 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
135505 void * (*aggregate_context)(sqlite3_context*,int nBytes);
140775 int nBytes, /* Length of zSql in bytes. */
141387 int nBytes, /* Length of zSql in bytes. */
141469 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
141472 testcase( nBytes==mxLen );
141473 testcase( nBytes==mxLen+1 );
141474 if( nBytes>mxLen ){
141479 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
141485 sParse.zTail = &zSql[nBytes];
141541 int nBytes, /* Length of zSql in bytes. */
141563 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
141628 int nBytes, /* Length of zSql in bytes. */
141633 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
141640 int nBytes, /* Length of zSql in bytes. */
141650 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
141658 int nBytes, /* Length of zSql in bytes. */
141671 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
141686 int nBytes, /* Length of zSql in bytes. */
141706 if( nBytes>=0 ){
141709 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
141710 nBytes = sz;
141713 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
141744 int nBytes, /* Length of zSql in bytes. */
141749 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
141756 int nBytes, /* Length of zSql in bytes. */
141761 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
141768 int nBytes, /* Length of zSql in bytes. */
141774 rc = sqlite3Prepare16(db,zSql,nBytes,
154516 sqlite3_int64 nBytes;
154521 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg);
154525 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes);
154892 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
154894 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
184023 const char *pInput, int nBytes, /* Input buffer */
184054 ** nul-terminated. This should either be fixed, or pInput/nBytes
194197 int nBytes; /* size of the input */
194263 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
194269 const char *pInput, int nBytes, /* String to be tokenized */
194281 c->nBytes = 0;
194282 }else if( nBytes<0 ){
194283 c->nBytes = (int)strlen(pInput);
194285 c->nBytes = nBytes;
194323 while( c->iOffset<c->nBytes ){
194327 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
194333 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
202710 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
215465 ** string to be tokenized is pInput[0..nBytes-1]. A cursor