Home | History | Annotate | Download | only in orig

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);
28502 ** file-control operation. Enlarge the database to nBytes in size
28504 ** nBytes or larger, this routine is a no-op.
32255 static void *winMemMalloc(int nBytes);
32257 static void *winMemRealloc(void *pPrior, int nBytes);
32841 ** Allocate nBytes of memory.
32843 static void *winMemMalloc(int nBytes){
32854 assert( nBytes>=0 );
32855 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
32858 nBytes, osGetLastError(), (void*)hHeap);
32886 static void *winMemRealloc(void *pPrior, int nBytes){
32897 assert( nBytes>=0 );
32899 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
32901 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
32905 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
57470 ** The first time this is called on a shared-btree, nBytes bytes of memory
57472 ** call the nBytes parameter is ignored and a pointer to the same blob
57475 ** If the nBytes parameter is 0 and the blob of memory has not yet been
57484 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
57487 if( !pBt->pSchema && nBytes ){
57488 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
81263 int nBytes;
81275 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
81277 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
84988 int nBytes = sizeof(KeyInfo) + (nCol-1)*sizeof(CollSeq*) + nCol;
84990 KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes);
84995 assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) );
91008 void * (*aggregate_context)(sqlite3_context*,int nBytes);
94165 int nBytes, /* Length of zSql in bytes. */
94228 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
94231 testcase( nBytes==mxLen );
94232 testcase( nBytes==mxLen+1 );
94233 if( nBytes>mxLen ){
94238 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
94244 pParse->zTail = &zSql[nBytes];
94325 int nBytes, /* Length of zSql in bytes. */
94339 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94342 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
94397 int nBytes, /* Length of zSql in bytes. */
94402 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
94409 int nBytes, /* Length of zSql in bytes. */
94414 rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail);
94427 int nBytes, /* Length of zSql in bytes. */
94446 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
94477 int nBytes, /* Length of zSql in bytes. */
94482 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
94489 int nBytes, /* Length of zSql in bytes. */
94494 rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
101717 int nBytes = sizeof(char *)*(1+pTable->nModuleArg);
101719 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
102054 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
102055 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
116249 const char *pInput, int nBytes, /* Input buffer */
116280 ** nul-terminated. This should either be fixed, or pInput/nBytes
124864 int nBytes; /* size of the input */
124930 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
124936 const char *pInput, int nBytes, /* String to be tokenized */
124948 c->nBytes = 0;
124949 }else if( nBytes<0 ){
124950 c->nBytes = (int)strlen(pInput);
124952 c->nBytes = nBytes;
124990 while( c->iOffset<c->nBytes ){
124994 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
125000 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
133991 ** string to be tokenized is pInput[0..nBytes-1]. A cursor