Lines Matching refs:nByte
128 static void *sqlite3MemMalloc(int nByte){ in sqlite3MemMalloc() argument
131 testcase( ROUND8(nByte)==nByte ); in sqlite3MemMalloc()
132 p = SQLITE_MALLOC( nByte ); in sqlite3MemMalloc()
135 sqlite3_log(SQLITE_NOMEM, "failed to allocate %u bytes of memory", nByte); in sqlite3MemMalloc()
140 assert( nByte>0 ); in sqlite3MemMalloc()
141 testcase( ROUND8(nByte)!=nByte ); in sqlite3MemMalloc()
142 p = SQLITE_MALLOC( nByte+8 ); in sqlite3MemMalloc()
144 p[0] = nByte; in sqlite3MemMalloc()
148 sqlite3_log(SQLITE_NOMEM, "failed to allocate %u bytes of memory", nByte); in sqlite3MemMalloc()
200 static void *sqlite3MemRealloc(void *pPrior, int nByte){ in sqlite3MemRealloc() argument
202 void *p = SQLITE_REALLOC(pPrior, nByte); in sqlite3MemRealloc()
207 SQLITE_MALLOCSIZE(pPrior), nByte); in sqlite3MemRealloc()
212 assert( pPrior!=0 && nByte>0 ); in sqlite3MemRealloc()
213 assert( nByte==ROUND8(nByte) ); /* EV: R-46199-30249 */ in sqlite3MemRealloc()
215 p = SQLITE_REALLOC(p, nByte+8 ); in sqlite3MemRealloc()
217 p[0] = nByte; in sqlite3MemRealloc()
223 sqlite3MemSize(pPrior), nByte); in sqlite3MemRealloc()