/external/chromium_org/third_party/sqlite/src/src/ |
mem1.c | 33 ** For this low-level routine, we are guaranteed that nByte>0 because 34 ** cases of nByte<=0 will be intercepted and dealt with by higher level 37 static void *sqlite3MemMalloc(int nByte){ 39 assert( nByte>0 ); 40 nByte = ROUND8(nByte); 41 p = malloc( nByte+8 ); 43 p[0] = nByte; 47 sqlite3_log(SQLITE_NOMEM, "failed to allocate %u bytes of memory", nByte); 85 ** redirected to xMalloc. Similarly, we know that nByte>0 because [all...] |
mem0.c | 31 static void *sqlite3MemMalloc(int nByte){ return 0; } 33 static void *sqlite3MemRealloc(void *pPrior, int nByte){ return 0; }
|
status.c | 164 int nByte = 0; /* Used to accumulate return value */ 167 db->pnBytesFreed = &nByte; 173 nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( 179 nByte += sqlite3MallocSize(pSchema->tblHash.ht); 180 nByte += sqlite3MallocSize(pSchema->trigHash.ht); 181 nByte += sqlite3MallocSize(pSchema->idxHash.ht); 182 nByte += sqlite3MallocSize(pSchema->fkeyHash.ht); 196 *pCurrent = nByte; 207 int nByte = 0; /* Used to accumulate return value */ 209 db->pnBytesFreed = &nByte; [all...] |
test_wsd.c | 70 int nByte = ROUND8(sizeof(ProcessLocalVar) + L); 71 assert( pGlobal->nFree>=nByte ); 76 pGlobal->nFree -= nByte; 77 pGlobal->pFree += nByte;
|
mem2.c | 219 static void randomFill(char *pBuf, int nByte){ 222 y = nByte | 1; 223 while( nByte >= 4 ){ 229 nByte -= 4; 231 while( nByte-- > 0 ){ 240 ** Allocate nByte bytes of memory. 242 static void *sqlite3MemMalloc(int nByte){ 252 nReserve = ROUND8(nByte); 278 mem.xBacktrace(nByte, pHdr->nBacktrace-1, &aAddr[1]); 286 pHdr->iSize = nByte; [all...] |
mem5.c | 235 ** The caller guarantees that nByte positive. 241 static void *memsys5MallocUnsafe(int nByte){ 247 /* nByte must be a positive */ 248 assert( nByte>0 ); 252 if( (u32)nByte>mem5.maxRequest ){ 253 mem5.maxRequest = nByte; 259 if( nByte > 0x40000000 ){ 263 /* Round nByte up to the next valid power of two */ 264 for(iFullSz=mem5.szAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){} 273 sqlite3_log(SQLITE_NOMEM, "failed to allocate %u bytes", nByte); [all...] |
test_devsym.c | 67 static void devsymDlError(sqlite3_vfs*, int nByte, char *zErrMsg); 71 static int devsymRandomness(sqlite3_vfs*, int nByte, char *zOut); 328 ** Populate the buffer zErrMsg (size nByte bytes) with a human readable 332 static void devsymDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ 333 sqlite3OsDlError(g.pVfs, nByte, zErrMsg); 352 ** Populate the buffer pointed to by zBufOut with nByte bytes of 355 static int devsymRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ 356 return sqlite3OsRandomness(g.pVfs, nByte, zBufOut);
|
vdbemem.c | 150 int nByte; 155 /* Set nByte to the number of bytes required to store the expanded blob. */ 156 nByte = pMem->n + pMem->u.nZero; 157 if( nByte<=0 ){ 158 nByte = 1; 160 if( sqlite3VdbeMemGrow(pMem, nByte, 1) ){ 206 const int nByte = 32; 216 if( sqlite3VdbeMemGrow(pMem, nByte, 0) ){ 227 sqlite3_snprintf(nByte, pMem->z, "%lld", pMem->u.i); 230 sqlite3_snprintf(nByte, pMem->z, "%!.15g", pMem->r) [all...] |
os_win.c | 199 int nByte; 202 nByte = WideCharToMultiByte(CP_UTF8, 0, zWideFilename, -1, 0, 0, 0, 0); 203 zFilename = malloc( nByte ); 207 nByte = WideCharToMultiByte(CP_UTF8, 0, zWideFilename, -1, zFilename, nByte, 209 if( nByte == 0 ){ 224 int nByte; 228 nByte = MultiByteToWideChar(codepage, 0, zFilename, -1, NULL,0)*sizeof(WCHAR); 229 zMbcsFilename = malloc( nByte*sizeof(zMbcsFilename[0]) ); 233 nByte = MultiByteToWideChar(codepage, 0, zFilename, -1, zMbcsFilename, nByte) [all...] |
test_vfs.c | 179 static void tvfsDlError(sqlite3_vfs*, int nByte, char *zErrMsg); 183 static int tvfsRandomness(sqlite3_vfs*, int nByte, char *zOut); 279 int nByte; 287 nByte = (nScript+TESTVFS_MAX_ARGS)*sizeof(Tcl_Obj *); 288 p->apScript = (Tcl_Obj **)ckalloc(nByte); 289 memset(p->apScript, 0, nByte); 579 int nByte; 582 nByte = sizeof(sqlite3_io_methods); 584 nByte = offsetof(sqlite3_io_methods, xShmMap); 587 pMethods = (sqlite3_io_methods *)ckalloc(nByte); [all...] |
test_server.c | 228 int nByte; /* Size of the zIn parameter for prepare() */ 240 #define MSG_Prepare 2 /* sqlite3_prepare(pDb, zIn, nByte, &pStmt, &zOut) */ 343 int nByte, 351 msg.nByte = nByte; 428 pMsg->errCode = sqlite3_prepare(pMsg->pDb, pMsg->zIn, pMsg->nByte,
|
test_malloc.c | 314 int nByte; 321 if( Tcl_GetIntFromObj(interp, objv[1], &nByte) ) return TCL_ERROR; 322 p = sqlite3_malloc((unsigned)nByte); 339 int nByte; 346 if( Tcl_GetIntFromObj(interp, objv[2], &nByte) ) return TCL_ERROR; 351 p = sqlite3_realloc(pPrior, (unsigned)nByte); 741 int nByte; 745 static void test_memdebug_callback(int nByte, int nFrame, void **aFrame){ 770 pLog->nByte += nByte; [all...] |
os.c | 168 void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ 169 pVfs->xDlError(pVfs, nByte, zBufOut); 178 int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ 179 return pVfs->xRandomness(pVfs, nByte, zBufOut);
|
test_demovfs.c | 565 static void demoDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ 566 sqlite3_snprintf(nByte, zErrMsg, "Loadable extensions are not supported"); 567 zErrMsg[nByte-1] = '\0'; 577 ** Parameter zByte points to a buffer nByte bytes in size. Populate this 580 static int demoRandomness(sqlite3_vfs *pVfs, int nByte, char *zByte){
|
test_vfstrace.c | 72 static void vfstraceDlError(sqlite3_vfs*, int nByte, char *zErrMsg); 75 static int vfstraceRandomness(sqlite3_vfs*, int nByte, char *zOut); 603 ** Populate the buffer zErrMsg (size nByte bytes) with a human readable 607 static void vfstraceDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ 610 vfstrace_printf(pInfo, "%s.xDlError(%d)", pInfo->zVfsName, nByte); 611 pRoot->xDlError(pRoot, nByte, zErrMsg); 636 ** Populate the buffer pointed to by zBufOut with nByte bytes of 639 static int vfstraceRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ 642 vfstrace_printf(pInfo, "%s.xRandomness(%d)\n", pInfo->zVfsName, nByte); 643 return pRoot->xRandomness(pRoot, nByte, zBufOut) [all...] |
/external/chromium_org/third_party/sqlite/src/tool/ |
showwal.c | 51 static unsigned char *getContent(int ofst, int nByte){ 53 aData = malloc(nByte); 56 read(fd, aData, nByte); 65 int nByte, /* Number of bytes to print */ 72 if( ((printOfst+nByte)&~0xfff)==0 ){ 74 }else if( ((printOfst+nByte)&~0xffff)==0 ){ 76 }else if( ((printOfst+nByte)&~0xfffff)==0 ){ 78 }else if( ((printOfst+nByte)&~0xffffff)==0 ){ 84 for(i=0; i<nByte; i += perLine){ 87 if( i+j>nByte ){ [all...] |
showdb.c | 58 static unsigned char *getContent(int ofst, int nByte){ 60 aData = malloc(nByte+32); 62 memset(aData, 0, nByte+32); 64 read(db, aData, nByte); 73 int nByte, /* Number of bytes to print */ 80 if( ((printOfst+nByte)&~0xfff)==0 ){ 82 }else if( ((printOfst+nByte)&~0xffff)==0 ){ 84 }else if( ((printOfst+nByte)&~0xfffff)==0 ){ 86 }else if( ((printOfst+nByte)&~0xffffff)==0 ){ 92 aData = getContent(ofst, nByte); [all...] |
speedtest8inst1.c | 85 sqlite3_int64 nByte; 95 rc = p->pMethods->xFileSize(p, &nByte); 100 zData = (char *)malloc(nByte+1); 101 rc = p->pMethods->xRead(p, zData, nByte, 0); 105 zData[nByte] = '\0'; 109 *pnScript = nByte;
|
speedtest16.c | 109 int nByte = 0; 146 nByte += j-i; 161 printf("Bytes of SQL text: %15d\n", nByte);
|
showjournal.c | 50 int ofst, int nByte, /* Start and size of decode */ 59 if( j>=nByte ){
|
speedtest8.c | 103 int nByte = 0; 218 nByte += n; 237 printf("Bytes of SQL text: %15d bytes\n", nByte);
|
/external/chromium_org/third_party/sqlite/src/ext/fts2/ |
fts2_icu.c | 188 int nByte = 0; 213 if( nByte ){ 214 char *zNew = sqlite3_realloc(pCsr->zBuffer, nByte); 219 pCsr->nBuffer = nByte; 223 pCsr->zBuffer, pCsr->nBuffer, &nByte, /* Output vars */ 227 } while( nByte>pCsr->nBuffer ); 230 *pnBytes = nByte;
|
/external/chromium_org/third_party/sqlite/src/ext/fts3/ |
fts3_icu.c | 188 int nByte = 0; 213 if( nByte ){ 214 char *zNew = sqlite3_realloc(pCsr->zBuffer, nByte); 219 pCsr->nBuffer = nByte; 223 pCsr->zBuffer, pCsr->nBuffer, &nByte, /* Output vars */ 227 } while( nByte>pCsr->nBuffer ); 230 *pnBytes = nByte;
|
fts3_expr.c | 110 ** Allocate nByte bytes of memory using sqlite3_malloc(). If successful, 114 static void *fts3MallocZero(int nByte){ 115 void *pRet = sqlite3_malloc(nByte); 116 if( pRet ) memset(pRet, 0, nByte); 151 int nByte; /* total space to allocate */ 157 nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase) + nToken; 158 pRet = (Fts3Expr *)fts3MallocZero(nByte); 236 int nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase); 237 p = fts3ReallocOrFree(p, nByte+ii*sizeof(Fts3PhraseToken)); 243 memset(p, 0, nByte); [all...] |
/external/chromium_org/third_party/sqlite/src/ext/async/ |
sqlite3async.c | 417 ** The interpretation of the iOffset and nByte variables varies depending 425 ** nByte -> Number of bytes of data to write (pointed to by zBuf). 428 ** nByte -> flags to pass to sqlite3OsSync(). 432 ** nByte -> Unused. 436 ** nByte -> Unused. 440 ** nByte -> Number of bytes of zBuf points to (file name). 444 ** nByte -> Number of bytes of zBuf points to (file name). 447 ** nByte -> Argument to sqlite3OsUnlock(). 459 int nByte; /* See above */ 591 int nByte, [all...] |