Lines Matching refs:size_t
64 #define EXTRA_SIZE ZEND_MM_ALIGNED_SIZE(sizeof(size_t))
70 static void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D) in _mysqlnd_emalloc()
80 *(size_t *) ret = size; in _mysqlnd_emalloc()
89 static void * _mysqlnd_pemalloc(size_t size, bool persistent MYSQLND_MEM_D) in _mysqlnd_pemalloc()
101 *(size_t *) ret = size; in _mysqlnd_pemalloc()
111 static void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc()
122 *(size_t *) ret = size; in _mysqlnd_ecalloc()
131 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
143 *(size_t *) ret = size; in _mysqlnd_pecalloc()
153 static void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_erealloc()
157 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_erealloc()
164 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
173 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
177 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_perealloc()
187 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
198 size_t free_amount = 0; in _mysqlnd_efree()
212 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_efree()
213 TRACE_ALLOC_INF_FMT("ptr=%p size=%zu", ((char*)ptr) - sizeof(size_t), free_amount); in _mysqlnd_efree()
229 size_t free_amount = 0; in _mysqlnd_pefree()
243 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_pefree()
244 TRACE_ALLOC_INF_FMT("ptr=%p size=%zu", ((char*)ptr) - sizeof(size_t), free_amount); in _mysqlnd_pefree()
259 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, bool persistent MYSQLND_MEM_… in _mysqlnd_pememdup()
280 *(size_t *) ret = length; in _mysqlnd_pememdup()
290 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, bool persistent MYSQLND_MEM… in _mysqlnd_pestrndup()
306 size_t l = length; in _mysqlnd_pestrndup()
316 *(size_t *) ret = length; in _mysqlnd_pestrndup()
353 *(size_t *) ret = ZSTR_LEN(tmp_str.s); in _mysqlnd_pestrdup()
366 static void * mysqlnd_zend_mm_emalloc(size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_emalloc()
374 static void * mysqlnd_zend_mm_pemalloc(size_t size, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
382 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc()
390 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM… in mysqlnd_zend_mm_pecalloc()
398 static void * mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_erealloc()
406 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_perealloc()
430 static char * mysqlnd_zend_mm_pememdup(const char * const ptr, size_t length, bool persistent MYSQL… in mysqlnd_zend_mm_pememdup()
442 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, bool persistent MYSQ… in mysqlnd_zend_mm_pestrndup()