/external/chromium_org/third_party/sqlite/src/src/ |
test_wsd.c | 70 int nByte = ROUND8(sizeof(ProcessLocalVar) + L); 71 assert( pGlobal->nFree>=nByte ); 76 pGlobal->nFree -= nByte; 77 pGlobal->pFree += nByte;
|
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...] |
vdbeblob.c | 27 int nByte; /* Size of open blob, in bytes */ 77 p->nByte = sqlite3VdbeSerialTypeLen(type); 371 if( n<0 || iOffset<0 || (iOffset+n)>p->nByte ){ 418 ** The Incrblob.nByte field is fixed for the lifetime of the Incrblob 423 return (p && p->pStmt) ? p->nByte : 0;
|
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...] |
pcache.c | 222 int nByte; 223 nByte = pCache->szPage + pCache->szExtra + sizeof(PgHdr); 224 p = sqlite3GlobalConfig.pcache.xCreate(nByte, pCache->bPurgeable);
|
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_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...] |
loadext.c | 576 int nByte = (wsdAutoext.nExt+1)*sizeof(wsdAutoext.aExt[0]); 578 aNew = sqlite3_realloc(wsdAutoext.aExt, nByte);
|
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...] |
pcache1.c | 208 static void *pcache1Alloc(int nByte){ 211 sqlite3StatusSet(SQLITE_STATUS_PAGECACHE_SIZE, nByte); 212 if( nByte<=pcache1.szSlot ){ 228 p = sqlite3Malloc(nByte); 290 int nByte = sizeof(PgHdr1) + pCache->szPage; 291 void *pPg = pcache1Alloc(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...] |
test_osinst.c | 164 static void vfslogDlError(sqlite3_vfs*, int nByte, char *zErrMsg); 167 static int vfslogRandomness(sqlite3_vfs*, int nByte, char *zOut); 556 ** Populate the buffer zErrMsg (size nByte bytes) with a human readable 560 static void vfslogDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ 561 REALVFS(pVfs)->xDlError(REALVFS(pVfs), nByte, zErrMsg); 579 ** Populate the buffer pointed to by zBufOut with nByte bytes of 582 static int vfslogRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ 583 return REALVFS(pVfs)->xRandomness(REALVFS(pVfs), nByte, zBufOut); 708 int nByte; 720 nByte = sizeof(VfslogVfs) + pParent->szOsFile + nVfs+1+pParent->mxPathname+1 [all...] |
build.c | [all...] |
/external/chromium_org/third_party/sqlite/src/tool/ |
speedtest16.c | 109 int nByte = 0; 146 nByte += j-i; 161 printf("Bytes of SQL text: %15d\n", nByte);
|
speedtest8.c | 103 int nByte = 0; 218 nByte += n; 237 printf("Bytes of SQL text: %15d bytes\n", nByte);
|
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;
|
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...] |
/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_aux.c | 68 int nByte; /* Bytes of space to allocate here */ 90 nByte = sizeof(Fts3auxTable) + sizeof(Fts3Table) + nDb + nFts3 + 2; 91 p = (Fts3auxTable *)sqlite3_malloc(nByte); 93 memset(p, 0, 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...] |
fts3_snippet.c | 461 int nByte; /* Number of bytes of space to allocate */ 478 nByte = sizeof(SnippetPhrase) * nList; 479 sIter.aPhrase = (SnippetPhrase *)sqlite3_malloc(nByte); 483 memset(sIter.aPhrase, 0, nByte); [all...] |
fts3.c | 833 int nByte; /* Size of allocation used for *p */ 934 nByte = sizeof(Fts3Table) + /* Fts3Table */ 939 p = (Fts3Table*)sqlite3_malloc(nByte); 944 memset(p, 0, nByte); [all...] |
fts3_write.c | 877 int nByte = sqlite3_blob_bytes(p->pSegments); 879 char *aByte = sqlite3_malloc(nByte + FTS3_NODE_PADDING); 883 rc = sqlite3_blob_read(p->pSegments, aByte, nByte, 0); 884 memset(&aByte[nByte], 0, FTS3_NODE_PADDING); 892 *pnBlob = 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...] |