Lines Matching defs:nBytes
1745 ** The xRandomness() function attempts to return nBytes bytes
6017 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
26523 ** Called when we are unable to satisfy an allocation of nBytes.
26638 ** Return a block of memory of at least nBytes in size.
26787 ** Allocate nBytes of memory.
26789 static void *memsys3Malloc(int nBytes){
26791 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
26793 p = memsys3MallocUnsafe(nBytes);
26811 static void *memsys3Realloc(void *pPrior, int nBytes){
26815 return sqlite3_malloc(nBytes);
26817 if( nBytes<=0 ){
26822 if( nBytes<=nOld && nBytes>=nOld-128 ){
26826 p = memsys3MallocUnsafe(nBytes);
26828 if( nOld<nBytes ){
26831 memcpy(p, pPrior, nBytes);
27191 ** Return a block of memory of at least nBytes in size.
27192 ** Return NULL if unable. Return NULL if nBytes==0.
27334 ** Allocate nBytes of memory.
27336 static void *memsys5Malloc(int nBytes){
27338 if( nBytes>0 ){
27340 p = memsys5MallocUnsafe(nBytes);
27365 ** nBytes is always a value obtained from a prior call to
27366 ** memsys5Round(). Hence nBytes is always a non-negative power
27367 ** of two. If nBytes==0 that means that an oversize allocation
27371 static void *memsys5Realloc(void *pPrior, int nBytes){
27375 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
27376 assert( nBytes>=0 );
27377 if( nBytes==0 ){
27381 if( nBytes<=nOld ){
27384 p = memsys5Malloc(nBytes);
29546 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
29552 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
29554 if( nBytes==0 ){
29558 if( nBytes>=0x7fffff00 ){
29566 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
29572 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
29585 sqlite3MallocAlarm((int)nBytes);
40723 ** file-control operation. Enlarge the database to nBytes in size
40725 ** nBytes or larger, this routine is a no-op.
45531 static void *winMemMalloc(int nBytes);
45533 static void *winMemRealloc(void *pPrior, int nBytes);
46541 ** Allocate nBytes of memory.
46543 static void *winMemMalloc(int nBytes){
46554 assert( nBytes>=0 );
46555 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
46558 nBytes, osGetLastError(), (void*)hHeap);
46586 static void *winMemRealloc(void *pPrior, int nBytes){
46597 assert( nBytes>=0 );
46599 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
46601 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
46605 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
79528 ** The first time this is called on a shared-btree, nBytes bytes of memory
79530 ** call the nBytes parameter is ignored and a pointer to the same blob
79533 ** If the nBytes parameter is 0 and the blob of memory has not yet been
79542 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
79545 if( !pBt->pSchema && nBytes ){
79546 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
117515 int nBytes;
117528 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
117530 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
131960 void * (*aggregate_context)(sqlite3_context*,int nBytes);
137216 int nBytes, /* Length of zSql in bytes. */
137823 int nBytes, /* Length of zSql in bytes. */
137896 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
137899 testcase( nBytes==mxLen );
137900 testcase( nBytes==mxLen+1 );
137901 if( nBytes>mxLen ){
137906 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
137912 sParse.zTail = &zSql[nBytes];
137968 int nBytes, /* Length of zSql in bytes. */
137990 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
138054 int nBytes, /* Length of zSql in bytes. */
138059 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
138066 int nBytes, /* Length of zSql in bytes. */
138076 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
138084 int nBytes, /* Length of zSql in bytes. */
138097 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
138112 int nBytes, /* Length of zSql in bytes. */
138132 if( nBytes>=0 ){
138135 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
138136 nBytes = sz;
138139 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
138170 int nBytes, /* Length of zSql in bytes. */
138175 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
138182 int nBytes, /* Length of zSql in bytes. */
138187 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
138194 int nBytes, /* Length of zSql in bytes. */
138200 rc = sqlite3Prepare16(db,zSql,nBytes,
150297 sqlite3_int64 nBytes;
150302 nBytes = sizeof(char *)*(2+pTable->u.vtab.nArg);
150306 azModuleArg = sqlite3DbRealloc(db, pTable->u.vtab.azArg, nBytes);
150671 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
150673 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
179135 const char *pInput, int nBytes, /* Input buffer */
179166 ** nul-terminated. This should either be fixed, or pInput/nBytes
189232 int nBytes; /* size of the input */
189298 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
189304 const char *pInput, int nBytes, /* String to be tokenized */
189316 c->nBytes = 0;
189317 }else if( nBytes<0 ){
189318 c->nBytes = (int)strlen(pInput);
189320 c->nBytes = nBytes;
189358 while( c->iOffset<c->nBytes ){
189362 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
189368 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
197725 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
207997 ** string to be tokenized is pInput[0..nBytes-1]. A cursor