Lines Matching refs:nByte
219 static void randomFill(char *pBuf, int nByte){ in randomFill() argument
222 y = nByte | 1; in randomFill()
223 while( nByte >= 4 ){ in randomFill()
229 nByte -= 4; in randomFill()
231 while( nByte-- > 0 ){ in randomFill()
242 static void *sqlite3MemMalloc(int nByte){ in sqlite3MemMalloc() argument
252 nReserve = ROUND8(nByte); in sqlite3MemMalloc()
278 mem.xBacktrace(nByte, pHdr->nBacktrace-1, &aAddr[1]); in sqlite3MemMalloc()
286 pHdr->iSize = nByte; in sqlite3MemMalloc()
287 adjustStats(nByte, +1); in sqlite3MemMalloc()
290 randomFill((char*)pInt, nByte); in sqlite3MemMalloc()
291 memset(((char*)pInt)+nByte, 0x65, nReserve-nByte); in sqlite3MemMalloc()
343 static void *sqlite3MemRealloc(void *pPrior, int nByte){ in sqlite3MemRealloc() argument
347 assert( (nByte & 7)==0 ); /* EV: R-46199-30249 */ in sqlite3MemRealloc()
349 pNew = sqlite3MemMalloc(nByte); in sqlite3MemRealloc()
351 memcpy(pNew, pPrior, (int)(nByte<pOldHdr->iSize ? nByte : pOldHdr->iSize)); in sqlite3MemRealloc()
352 if( nByte>pOldHdr->iSize ){ in sqlite3MemRealloc()
353 randomFill(&((char*)pNew)[pOldHdr->iSize], nByte - (int)pOldHdr->iSize); in sqlite3MemRealloc()