Searched defs:nByte (Results 1 - 25 of 66) sorted by relevance

123

/external/chromium_org/third_party/sqlite/src/src/
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 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 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 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_superlock.c86 ** Obtain an exclusive shm-lock on nByte bytes starting at offset idx
94 int nByte, /* Number of consective bytes to lock */
100 rc = xShmLock(fd, idx, nByte, SQLITE_SHM_LOCK|SQLITE_SHM_EXCLUSIVE);
91 superlockShmLock( sqlite3_file *fd, int idx, int nByte, SuperlockBusy *pBusy ) argument
H A Dvdbeblob.c27 int nByte; /* Size of open blob, in bytes */ member in struct:Incrblob
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;
H A Dmem3.c235 static void memsys3OutOfMemory(int nByte){ argument
240 sqlite3_release_memory(nByte);
354 static void *memsys3MallocUnsafe(int nByte){ argument
361 if( nByte<=12 ){
364 nBlock = (nByte + 11)/8;
H A Dpcache.c222 int nByte; local
223 nByte = pCache->szPage + pCache->szExtra + sizeof(PgHdr);
224 p = sqlite3GlobalConfig.pcache.xCreate(nByte, pCache->bPurgeable);
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 Dutf.c380 ** pZ is a UTF-8 encoded unicode string. If nByte is less than zero,
382 ** the first 0x00 byte. If nByte is not less than zero, return the
383 ** number of unicode characters in the first nByte of pZ (or up to
386 int sqlite3Utf8CharLen(const char *zIn, int nByte){ argument
390 if( nByte>=0 ){
391 zTerm = &z[nByte];
440 char *sqlite3Utf16to8(sqlite3 *db, const void *z, int nByte, u8 enc){ argument
444 sqlite3VdbeMemSetStr(&m, z, nByte, enc, SQLITE_STATIC);
H A Dloadext.c576 int nByte = (wsdAutoext.nExt+1)*sizeof(wsdAutoext.aExt[0]); local
578 aNew = sqlite3_realloc(wsdAutoext.aExt, nByte);
H A Dmalloc.c241 static void sqlite3MallocAlarm(int nByte){ argument
251 xCallback(pArg, nowUsed, 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 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_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);
/external/chromium_org/third_party/sqlite/src/tool/
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 Dspeedtest16.c109 int nByte = 0; local
146 nByte += j-i;
161 printf("Bytes of SQL text: %15d\n", nByte);
H A Dspeedtest8.c103 int nByte = 0; local
218 nByte += n;
237 printf("Bytes of SQL text: %15d bytes\n", nByte);
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 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...]
/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_aux.c68 int nByte; /* Bytes of space to allocate here */ local
90 nByte = sizeof(Fts3auxTable) + sizeof(Fts3Table) + nDb + nFts3 + 2;
91 p = (Fts3auxTable *)sqlite3_malloc(nByte);
93 memset(p, 0, nByte);

Completed in 214 milliseconds

123