• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/sqlite3/

Lines Matching refs:nBytes

2404 ** The xRandomness() function attempts to return nBytes bytes
6594 SQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);
24896 ** Called when we are unable to satisfy an allocation of nBytes.
25011 ** Return a block of memory of at least nBytes in size.
25160 ** Allocate nBytes of memory.
25162 static void *memsys3Malloc(int nBytes){
25164 assert( nBytes>0 ); /* malloc.c filters out 0 byte requests */
25166 p = memsys3MallocUnsafe(nBytes);
25184 static void *memsys3Realloc(void *pPrior, int nBytes){
25188 return sqlite3_malloc(nBytes);
25190 if( nBytes<=0 ){
25195 if( nBytes<=nOld && nBytes>=nOld-128 ){
25199 p = memsys3MallocUnsafe(nBytes);
25201 if( nOld<nBytes ){
25204 memcpy(p, pPrior, nBytes);
25564 ** Return a block of memory of at least nBytes in size.
25565 ** Return NULL if unable. Return NULL if nBytes==0.
25707 ** Allocate nBytes of memory.
25709 static void *memsys5Malloc(int nBytes){
25711 if( nBytes>0 ){
25713 p = memsys5MallocUnsafe(nBytes);
25738 ** nBytes is always a value obtained from a prior call to
25739 ** memsys5Round(). Hence nBytes is always a non-negative power
25740 ** of two. If nBytes==0 that means that an oversize allocation
25744 static void *memsys5Realloc(void *pPrior, int nBytes){
25748 assert( (nBytes&(nBytes-1))==0 ); /* EV: R-46199-30249 */
25749 assert( nBytes>=0 );
25750 if( nBytes==0 ){
25754 if( nBytes<=nOld ){
25757 p = memsys5Malloc(nBytes);
28056 SQLITE_PRIVATE void *sqlite3Realloc(void *pOld, u64 nBytes){
28062 return sqlite3Malloc(nBytes); /* IMP: R-04300-56712 */
28064 if( nBytes==0 ){
28068 if( nBytes>=0x7fffff00 ){
28076 nNew = sqlite3GlobalConfig.m.xRoundup((int)nBytes);
28082 sqlite3StatusHighwater(SQLITE_STATUS_MALLOC_SIZE, (int)nBytes);
28095 sqlite3MallocAlarm((int)nBytes);
37730 ** file-control operation. Enlarge the database to nBytes in size
37732 ** nBytes or larger, this routine is a no-op.
42566 static void *winMemMalloc(int nBytes);
42568 static void *winMemRealloc(void *pPrior, int nBytes);
43576 ** Allocate nBytes of memory.
43578 static void *winMemMalloc(int nBytes){
43589 assert( nBytes>=0 );
43590 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
43593 nBytes, osGetLastError(), (void*)hHeap);
43621 static void *winMemRealloc(void *pPrior, int nBytes){
43632 assert( nBytes>=0 );
43634 p = osHeapAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, (SIZE_T)nBytes);
43636 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
43640 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
75488 ** The first time this is called on a shared-btree, nBytes bytes of memory
75490 ** call the nBytes parameter is ignored and a pointer to the same blob
75493 ** If the nBytes parameter is 0 and the blob of memory has not yet been
75502 SQLITE_PRIVATE void *sqlite3BtreeSchema(Btree *p, int nBytes, void(*xFree)(void *)){
75505 if( !pBt->pSchema && nBytes ){
75506 pBt->pSchema = sqlite3DbMallocZero(0, nBytes);
111637 int nBytes;
111652 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
111654 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
125423 void * (*aggregate_context)(sqlite3_context*,int nBytes);
130210 int nBytes, /* Length of zSql in bytes. */
130777 int nBytes, /* Length of zSql in bytes. */
130846 if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){
130849 testcase( nBytes==mxLen );
130850 testcase( nBytes==mxLen+1 );
130851 if( nBytes>mxLen ){
130856 zSqlCopy = sqlite3DbStrNDup(db, zSql, nBytes);
130862 sParse.zTail = &zSql[nBytes];
130917 int nBytes, /* Length of zSql in bytes. */
130939 rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
131002 int nBytes, /* Length of zSql in bytes. */
131007 rc = sqlite3LockAndPrepare(db,zSql,nBytes,0,0,ppStmt,pzTail);
131014 int nBytes, /* Length of zSql in bytes. */
131024 rc = sqlite3LockAndPrepare(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,0,
131032 int nBytes, /* Length of zSql in bytes. */
131045 rc = sqlite3LockAndPrepare(db,zSql,nBytes,
131060 int nBytes, /* Length of zSql in bytes. */
131080 if( nBytes>=0 ){
131083 for(sz=0; sz<nBytes && (z[sz]!=0 || z[sz+1]!=0); sz += 2){}
131084 nBytes = sz;
131087 zSql8 = sqlite3Utf16to8(db, zSql, nBytes, SQLITE_UTF16NATIVE);
131118 int nBytes, /* Length of zSql in bytes. */
131123 rc = sqlite3Prepare16(db,zSql,nBytes,0,ppStmt,pzTail);
131130 int nBytes, /* Length of zSql in bytes. */
131135 rc = sqlite3Prepare16(db,zSql,nBytes,SQLITE_PREPARE_SAVESQL,ppStmt,pzTail);
131142 int nBytes, /* Length of zSql in bytes. */
131148 rc = sqlite3Prepare16(db,zSql,nBytes,
142329 sqlite3_int64 nBytes = sizeof(char *)*(2+pTable->nModuleArg);
142335 azModuleArg = sqlite3DbRealloc(db, pTable->azModuleArg, nBytes);
142698 sqlite3_int64 nBytes = sizeof(sqlite3_vtab*)*
142700 aVTrans = sqlite3DbRealloc(db, (void *)db->aVTrans, nBytes);
169500 const char *pInput, int nBytes, /* Input buffer */
169531 ** nul-terminated. This should either be fixed, or pInput/nBytes
179572 int nBytes; /* size of the input */
179638 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
179644 const char *pInput, int nBytes, /* String to be tokenized */
179656 c->nBytes = 0;
179657 }else if( nBytes<0 ){
179658 c->nBytes = (int)strlen(pInput);
179660 c->nBytes = nBytes;
179698 while( c->iOffset<c->nBytes ){
179702 while( c->iOffset<c->nBytes && simpleDelim(t, p[c->iOffset]) ){
179708 while( c->iOffset<c->nBytes && !simpleDelim(t, p[c->iOffset]) ){
188043 ** string to be tokenized is pInput[0..nBytes-1]. A cursor
198205 ** string to be tokenized is pInput[0..nBytes-1]. A cursor