Home | History | Annotate | Download | only in dist

Lines Matching defs:nBytes

1313 ** The xRandomness() function attempts to return nBytes bytes
3869 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
13354 ** Called when we are unable to satisfy an allocation of nBytes.
13469 ** Return a block of memory of at least nBytes in size.
13618 ** Allocate nBytes of memory.
13620 static void *memsys3Malloc(int nBytes){
13622 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
13624 p = memsys3MallocUnsafe(nBytes);
13642 void *memsys3Realloc(void *pPrior, int nBytes){
13646 return sqlite3_malloc(nBytes);
13648 if( nBytes<=0 ){
13653 if( nBytes<=nOld && nBytes>=nOld-128 ){
13657 p = memsys3MallocUnsafe(nBytes);
13659 if( nOld<nBytes ){
13662 memcpy(p, pPrior, nBytes);
14042 ** Return a block of memory of at least nBytes in size.
14043 ** Return NULL if unable. Return NULL if nBytes==0.
14167 ** Allocate nBytes of memory
14169 static void *memsys5Malloc(int nBytes){
14171 if( nBytes>0 ){
14173 p = memsys5MallocUnsafe(nBytes);
14198 ** nBytes is always a value obtained from a prior call to
14199 ** memsys5Round(). Hence nBytes is always a non-negative power
14200 ** of two. If nBytes==0 that means that an oversize allocation
14204 static void *memsys5Realloc(void *pPrior, int nBytes){
14208 assert( (nBytes&(nBytes-1))==0 );
14209 assert( nBytes>=0 );
14210 if( nBytes==0 ){
14214 if( nBytes<=nOld ){
14218 p = memsys5MallocUnsafe(nBytes);
16079 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, int nBytes){
16083 return sqlite3Malloc(nBytes);
16085 if( nBytes<=0 ){
16089 if( nBytes>=0x7fffff00 ){
16094 nNew = sqlite3GlobalConfig.m.xRoundup(nBytes);
16099 sqlite3StatusSet(SQLITE_STATUS_MALLOC_SIZE, nBytes);
16106 sqlite3MallocAlarm(nBytes);
45564 ** The first time this is called on a shared-btree, nBytes bytes of memory
45566 ** call the nBytes parameter is ignored and a pointer to the same blob
45569 ** If the nBytes parameter is 0 and the blob of memory has not yet been
45578 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
45581 if( !pBt->pSchema && nBytes ){
45582 pBt->pSchema = sqlite3MallocZero(nBytes);
66550 int nBytes;
66562 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
66564 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
70164 int nBytes = sizeof(KeyInfo) + (nCol-1)*sizeof(CollSeq*) + nCol;
70166 KeyInfo *pKey = (KeyInfo *)sqlite3DbMallocZero(db, nBytes);
70171 assert( &pKey->aSortOrder[nCol]==&(((u8 *)pKey)[nBytes]) );
76014 void * (*aggregate_context)(sqlite3_context*,int nBytes);
78902 int nBytes, /* Length of zSql in bytes. */
78964 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
78967 testcase( nBytes==mxLen );
78968 testcase( nBytes==mxLen+1 );
78969 if( nBytes>mxLen ){
78974 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
78980 pParse->zTail = &zSql[nBytes];
79064 int nBytes, /* Length of zSql in bytes. */
79078 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
79081 rc = sqlite3Prepare(db, zSql, nBytes, saveSqlFlag, pOld, ppStmt, pzTail);
79136 int nBytes, /* Length of zSql in bytes. */
79141 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
79148 int nBytes, /* Length of zSql in bytes. */
79153 rc = sqlite3LockAndPrepare(db,zSql,nBytes,1,0,ppStmt,pzTail);
79166 int nBytes, /* Length of zSql in bytes. */
79185 zSql8 = sqlite3Utf16to8(db, zSql, nBytes);
79216 int nBytes, /* Length of zSql in bytes. */
79221 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
79228 int nBytes, /* Length of zSql in bytes. */
79233 rc = sqlite3Prepare16(db,zSql,nBytes,1,ppStmt,pzTail);
86055 int nBytes = sizeof(char *)*(1+pTable->nModuleArg);
86057 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
86389 int nBytes = sizeof(sqlite3_vtab *) * (db->nVTrans + ARRAY_INCR);
86390 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
98559 const char *pInput, int nBytes, /* Input buffer */
98590 ** nul-terminated. This should either be fixed, or pInput/nBytes
103684 int nBytes; /* size of the input */
103747 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
103753 const char *pInput, int nBytes, /* String to be tokenized */
103765 c->nBytes = 0;
103766 }else if( nBytes<0 ){
103767 c->nBytes = (int)strlen(pInput);
103769 c->nBytes = nBytes;
103807 while( c->iOffset<c->nBytes ){
103811 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
103817 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
110992 ** string to be tokenized is pInput[0..nBytes-1]. A cursor