Lines Matching full:nbytes
1546 ** The xRandomness() function attempts to return nBytes bytes
4549 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
16220 ** Called when we are unable to satisfy an allocation of nBytes.
16335 ** Return a block of memory of at least nBytes in size.
16484 ** Allocate nBytes of memory.
16486 static void *memsys3Malloc(int nBytes){
16488 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
16490 p = memsys3MallocUnsafe(nBytes);
16508 static void *memsys3Realloc(void *pPrior, int nBytes){
16512 return sqlite3_malloc(nBytes);
16514 if( nBytes<=0 ){
16519 if( nBytes<=nOld && nBytes>=nOld-128 ){
16523 p = memsys3MallocUnsafe(nBytes);
16525 if( nOld<nBytes ){
16528 memcpy(p, pPrior, nBytes);
16908 ** Return a block of memory of at least nBytes in size.
16909 ** Return NULL if unable. Return NULL if nBytes==0.
17033 ** Allocate nBytes of memory
17035 static void *memsys5Malloc(int nBytes){
17037 if( nBytes>0 ){
17039 p = memsys5MallocUnsafe(nBytes);
17064 ** nBytes is always a value obtained from a prior call to
17065 ** memsys5Round(). Hence nBytes is always a non-negative power
17066 ** of two. If nBytes==0 that means that an oversize allocation
17070 static void *memsys5Realloc(void *pPrior, int nBytes){
17074 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
17075 assert( nBytes>=0 );
17076 if( nBytes==0 ){
17080 if( nBytes<=nOld ){
17084 p = memsys5MallocUnsafe(nBytes);
19095 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, int nBytes){
19099 return sqlite3Malloc(nBytes); /* IMP: R-28354-25769 */
19101 if( nBytes<=0 ){
19105 if( nBytes>=0x7fffff00 ){
19113 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes);
19118 sqlite3StatusSet(SQLITE_STATUS_MALLOC_SIZE, nBytes);
19128 sqlite3MallocAlarm(nBytes);
28520 ** file-control operation. Enlarge the database to nBytes in size
28522 ** nBytes or larger, this routine is a no-op.
32283 static void *winMemMalloc(int nBytes);
32285 static void *winMemRealloc(void *pPrior, int nBytes);
32869 ** Allocate nBytes of memory.
32871 static void *winMemMalloc(int nBytes){
32882 assert( nBytes>=0 );
32883 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
32886 nBytes, osGetLastError(), (void*)hHeap);
32914 static void *winMemRealloc(void *pPrior, int nBytes){
32925 assert( nBytes>=0 );
32927 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
32929 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
32933 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
57498 ** The first time this is called on a shared-btree, nBytes bytes of memory
57500 ** call the nBytes parameter is ignored and a pointer to the same blob
57503 ** If the nBytes parameter is 0 and the blob of memory has not yet been
57512 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
57515 if( !pBt->pSchema && nBytes ){
57516 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
81299 int nBytes;
81311 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
81313 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
85024 int nBytes = sizeof(KeyInfo) + (nCol-1)*sizeof(CollSeq*) + nCol;
85026 KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes);
85031 assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) );
91044 void * (*aggregate_context)(sqlite3_context*,int nBytes);
94201 int nBytes, /* Length of zSql in bytes. */
94264 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
94267 testcase( nBytes==mxLen );
94268 testcase( nBytes==mxLen+1 );
94269 if( nBytes>mxLen ){
94274 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
94280 pParse->zTail = &zSql[nBytes];
94361 int nBytes, /* Length of zSql in bytes. */
94375 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94378 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94433 int nBytes, /* Length of zSql in bytes. */
94438 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
94445 int nBytes, /* Length of zSql in bytes. */
94450 rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail);
94463 int nBytes, /* Length of zSql in bytes. */
94482 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
94513 int nBytes, /* Length of zSql in bytes. */
94518 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
94525 int nBytes, /* Length of zSql in bytes. */
94530 rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
101753 int nBytes = sizeof(char *)*(1+pTable->nModuleArg);
101755 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
102090 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
102091 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
116285 const char *pInput, int nBytes, /* Input buffer */
116316 ** nul-terminated. This should either be fixed, or pInput/nBytes
124912 int nBytes; /* size of the input */
124978 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
124984 const char *pInput, int nBytes, /* String to be tokenized */
124996 c->nBytes = 0;
124997 }else if( nBytes<0 ){
124998 c->nBytes = (int)strlen(pInput);
125000 c->nBytes = nBytes;
125038 while( c->iOffset<c->nBytes ){
125042 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
125048 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
134039 ** string to be tokenized is pInput[0..nBytes-1]. A cursor