• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/sqlite/

Lines Matching refs:nBytes

1384 ** The xRandomness() function attempts to return nBytes bytes
4027 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
14727 ** Called when we are unable to satisfy an allocation of nBytes.
14842 ** Return a block of memory of at least nBytes in size.
14991 ** Allocate nBytes of memory.
14993 static void *memsys3Malloc(int nBytes){
14995 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
14997 p = memsys3MallocUnsafe(nBytes);
15015 void *memsys3Realloc(void *pPrior, int nBytes){
15019 return sqlite3_malloc(nBytes);
15021 if( nBytes<=0 ){
15026 if( nBytes<=nOld && nBytes>=nOld-128 ){
15030 p = memsys3MallocUnsafe(nBytes);
15032 if( nOld<nBytes ){
15035 memcpy(p, pPrior, nBytes);
15415 ** Return a block of memory of at least nBytes in size.
15416 ** Return NULL if unable. Return NULL if nBytes==0.
15540 ** Allocate nBytes of memory
15542 static void *memsys5Malloc(int nBytes){
15544 if( nBytes>0 ){
15546 p = memsys5MallocUnsafe(nBytes);
15571 ** nBytes is always a value obtained from a prior call to
15572 ** memsys5Round(). Hence nBytes is always a non-negative power
15573 ** of two. If nBytes==0 that means that an oversize allocation
15577 static void *memsys5Realloc(void *pPrior, int nBytes){
15581 assert( (nBytes&(nBytes-1))==0 );
15582 assert( nBytes>=0 );
15583 if( nBytes==0 ){
15587 if( nBytes<=nOld ){
15591 p = memsys5MallocUnsafe(nBytes);
17575 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, int nBytes){
17579 return sqlite3Malloc(nBytes);
17581 if( nBytes<=0 ){
17585 if( nBytes>=0x7fffff00 ){
17590 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes);
17595 sqlite3StatusSet(SQLITE_STATUS_MALLOC_SIZE, nBytes);
17604 sqlite3MallocAlarm(nBytes);
52462 ** The first time this is called on a shared-btree, nBytes bytes of memory
52464 ** call the nBytes parameter is ignored and a pointer to the same blob
52467 ** If the nBytes parameter is 0 and the blob of memory has not yet been
52476 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
52479 if( !pBt->pSchema && nBytes ){
52480 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
73796 int nBytes;
73808 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
73810 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
77395 int nBytes = sizeof(KeyInfo) + (nCol-1)*sizeof(CollSeq*) + nCol;
77397 KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes);
77402 assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) );
83332 void * (*aggregate_context)(sqlite3_context*,int nBytes);
86303 int nBytes, /* Length of zSql in bytes. */
86366 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
86369 testcase( nBytes==mxLen );
86370 testcase( nBytes==mxLen+1 );
86371 if( nBytes>mxLen ){
86376 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
86382 pParse->zTail = &zSql[nBytes];
86466 int nBytes, /* Length of zSql in bytes. */
86480 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
86483 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
86538 int nBytes, /* Length of zSql in bytes. */
86543 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
86550 int nBytes, /* Length of zSql in bytes. */
86555 rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail);
86568 int nBytes, /* Length of zSql in bytes. */
86587 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
86618 int nBytes, /* Length of zSql in bytes. */
86623 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
86630 int nBytes, /* Length of zSql in bytes. */
86635 rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
93498 int nBytes = sizeof(char *)*(1+pTable->nModuleArg);
93500 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
93831 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
93832 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
106598 const char *pInput, int nBytes, /* Input buffer */
106629 ** nul-terminated. This should either be fixed, or pInput/nBytes
112004 int nBytes; /* size of the input */
112070 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
112076 const char *pInput, int nBytes, /* String to be tokenized */
112088 c->nBytes = 0;
112089 }else if( nBytes<0 ){
112090 c->nBytes = (int)strlen(pInput);
112092 c->nBytes = nBytes;
112130 while( c->iOffset<c->nBytes ){
112134 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
112140 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
119466 ** string to be tokenized is pInput[0..nBytes-1]. A cursor