Searched refs:nByte (Results 1 - 25 of 73) sorted by relevance

123

/external/chromium_org/third_party/sqlite/src/src/
H A Dmem1.c33 ** 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){ argument
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>
89 sqlite3MemRealloc(void *pPrior, int nByte) argument
[all...]
H A Dmem0.c31 static void *sqlite3MemMalloc(int nByte){ return 0; } argument
33 static void *sqlite3MemRealloc(void *pPrior, int nByte){ return 0; } argument
H A Dstatus.c164 int nByte = 0; /* Used to accumulate return value */ local
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 */ local
209 db->pnBytesFreed = &nByte;
[all...]
H A Dtest_wsd.c70 int nByte = ROUND8(sizeof(ProcessLocalVar) + L); local
71 assert( pGlobal->nFree>=nByte );
76 pGlobal->nFree -= nByte;
77 pGlobal->pFree += nByte;
H A Dmem2.c219 static void randomFill(char *pBuf, int nByte){ argument
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){ argument
252 nReserve = ROUND8(nByte);
278 mem.xBacktrace(nByte, pHdr->nBacktrace-1, &aAddr[1]);
286 pHdr->iSize = nByte;
343 sqlite3MemRealloc(void *pPrior, int nByte) argument
[all...]
H A Dmem5.c235 ** The caller guarantees that nByte positive.
241 static void *memsys5MallocUnsafe(int nByte){ argument
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);
457 int nByte; /* Number of bytes of memory available to this allocator */ local
[all...]
H A Dtest_devsym.c67 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){ argument
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){ argument
356 return sqlite3OsRandomness(g.pVfs, nByte, zBufOut);
H A Dvdbemem.c150 int nByte; local
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; local
216 if( sqlite3VdbeMemGrow(pMem, nByte, 0) ){
227 sqlite3_snprintf(nByte, pMem->z, "%lld", pMem->u.i);
230 sqlite3_snprintf(nByte, pMe
695 int nByte = n; /* New value for pMem->n */ local
[all...]
H A Dos_win.c199 int nByte; local
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; local
228 nByte = MultiByteToWideChar(codepage, 0, zFilename, -1, NULL,0)*sizeof(WCHAR);
229 zMbcsFilename = malloc( nByte*sizeof(zMbcsFilename[0]) );
233 nByte
249 int nByte; local
784 winTruncate(sqlite3_file *id, sqlite3_int64 nByte) argument
1751 int nByte = (iRegion+1)*szRegion; /* Minimum required file size */ local
2411 int nByte; local
[all...]
H A Dtest_vfs.c179 static void tvfsDlError(sqlite3_vfs*, int nByte, char *zErrMsg);
183 static int tvfsRandomness(sqlite3_vfs*, int nByte, char *zOut);
279 int nByte; local
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; local
582 nByte = sizeof(sqlite3_io_methods);
584 nByte = offsetof(sqlite3_io_methods, xShmMap);
587 pMethods = (sqlite3_io_methods *)ckalloc(nByte);
682 tvfsDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg) argument
683 sqlite3OsDlError(PARENTVFS(pVfs), nByte, zErrMsg); local
705 tvfsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut) argument
756 int nByte = sizeof(TestvfsBuffer) + strlen(pFd->zFilename) + 1; local
1007 int nByte = pgsz; local
1076 int nByte; local
1313 int nByte; /* Bytes of space to allocate at p */ local
[all...]
H A Dtest_server.c228 int nByte; /* Size of the zIn parameter for prepare() */ member in struct:SqlMessage
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,
340 sqlite3_client_prepare( sqlite3 *pDb, const char *zSql, int nByte, sqlite3_stmt **ppStmt, const char **pzTail ) argument
H A Dtest_malloc.c314 int nByte; local
321 if( Tcl_GetIntFromObj(interp, objv[1], &nByte) ) return TCL_ERROR;
322 p = sqlite3_malloc((unsigned)nByte);
339 int nByte; local
346 if( Tcl_GetIntFromObj(interp, objv[2], &nByte) ) return TCL_ERROR;
351 p = sqlite3_realloc(pPrior, (unsigned)nByte);
741 int nByte; member in struct:MallocLog
745 static void test_memdebug_callback(int nByte, int nFrame, void **aFrame){ argument
770 pLog->nByte += nByte;
1110 int nByte; /* Size of buffer to pass to sqlite3_config() */ local
[all...]
H A Dos.c168 void sqlite3OsDlError(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ argument
169 pVfs->xDlError(pVfs, nByte, zBufOut);
178 int sqlite3OsRandomness(sqlite3_vfs *pVfs, int nByte, char *zBufOut){ argument
179 return pVfs->xRandomness(pVfs, nByte, zBufOut);
H A Dtest_demovfs.c565 static void demoDlError(sqlite3_vfs *pVfs, int nByte, char *zErrMsg){ argument
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){ argument
H A Dtest_vfstrace.c72 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){ argument
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){ argument
642 vfstrace_printf(pInfo, "%s.xRandomness(%d)\n", pInfo->zVfsName, nByte);
643 return pRoot->xRandomness(pRoot, nByte, zBufOu
725 int nByte; local
[all...]
/external/chromium_org/third_party/sqlite/src/tool/
H A Dshowwal.c51 static unsigned char *getContent(int ofst, int nByte){ argument
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 ){
63 print_byte_range( int ofst, int nByte, unsigned char *aData, int printOfst ) argument
106 print_decode_line( unsigned char *aData, int ofst, int nByte, int asHex, const char *zMsg ) argument
[all...]
H A Dshowdb.c58 static unsigned char *getContent(int ofst, int nByte){ argument
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);
71 print_byte_range( int ofst, int nByte, int printOfst ) argument
129 print_decode_line( unsigned char *aData, int ofst, int nByte, const char *zMsg ) argument
516 int ofst, nByte, hdrSize; local
[all...]
H A Dspeedtest8inst1.c85 sqlite3_int64 nByte; local
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;
H A Dspeedtest16.c109 int nByte = 0; local
146 nByte += j-i;
161 printf("Bytes of SQL text: %15d\n", nByte);
H A Dshowjournal.c50 int ofst, int nByte, /* Start and size of decode */
59 if( j>=nByte ){
48 print_decode_line( unsigned char *aData, int ofst, int nByte, const char *zMsg ) argument
H A Dspeedtest8.c103 int nByte = 0; local
218 nByte += n;
237 printf("Bytes of SQL text: %15d bytes\n", nByte);
/external/chromium_org/third_party/sqlite/src/ext/fts2/
H A Dfts2_icu.c188 int nByte = 0; local
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/
H A Dfts3_icu.c188 int nByte = 0; local
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;
H A Dfts3_expr.c110 ** Allocate nByte bytes of memory using sqlite3_malloc(). If successful,
114 static void *fts3MallocZero(int nByte){ argument
115 void *pRet = sqlite3_malloc(nByte);
116 if( pRet ) memset(pRet, 0, nByte);
151 int nByte; /* total space to allocate */ local
157 nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase) + nToken;
158 pRet = (Fts3Expr *)fts3MallocZero(nByte);
236 int nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase); local
237 p = fts3ReallocOrFree(p, nByte+ii*sizeof(Fts3PhraseToken));
243 memset(p, 0, nByte);
268 int nByte = sizeof(Fts3Expr) + sizeof(Fts3Phrase); local
556 int nByte = 0; local
[all...]
/external/chromium_org/third_party/sqlite/src/ext/async/
H A Dsqlite3async.c417 ** 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 */ member in struct:AsyncWrite
591 int nByte,
587 addNewAsyncWrite( AsyncFileData *pFileData, int op, sqlite3_int64 iOffset, int nByte, const char *zByte ) argument
743 asyncTruncate(sqlite3_file *pFile, sqlite3_int64 nByte) argument
1041 int nByte; local
1096 int nByte = pVfs->szOsFile + sizeof(AsyncLock) + pData->nName + 1; local
1269 asyncDlError(sqlite3_vfs *pAsyncVfs, int nByte, char *zErrMsg) argument
1285 asyncRandomness(sqlite3_vfs *pAsyncVfs, int nByte, char *zBufOut) argument
[all...]

Completed in 1429 milliseconds

123