Lines Matching refs:size_t
74 #define REAL_SIZE(s) (collect_memory_statistics? (s) + sizeof(size_t) : (s))
75 #define REAL_PTR(p) (collect_memory_statistics && (p)? (((char *)(p)) - sizeof(size_t)) : (p))
76 #define FAKE_PTR(p) (collect_memory_statistics && (p)? (((char *)(p)) + sizeof(size_t)) : (p))
79 static void * _mysqlnd_emalloc(size_t size MYSQLND_MEM_D) in _mysqlnd_emalloc()
110 *(size_t *) ret = size; in _mysqlnd_emalloc()
119 static void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pemalloc()
152 *(size_t *) ret = size; in _mysqlnd_pemalloc()
162 static void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc()
194 *(size_t *) ret = size; in _mysqlnd_ecalloc()
203 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
235 *(size_t *) ret = size; in _mysqlnd_pecalloc()
245 static void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_erealloc()
249 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_erealloc()
277 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
286 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
290 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_perealloc()
321 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
332 size_t free_amount = 0; in _mysqlnd_efree()
346 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_efree()
347 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_efree()
363 size_t free_amount = 0; in _mysqlnd_pefree()
377 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_pefree()
378 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_pefree()
393 static void * _mysqlnd_malloc(size_t size MYSQLND_MEM_D) in _mysqlnd_malloc()
423 *(size_t *) ret = size; in _mysqlnd_malloc()
432 static void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_calloc()
462 *(size_t *) ret = size; in _mysqlnd_calloc()
471 static void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_realloc()
504 *(size_t *) ret = new_size; in _mysqlnd_realloc()
515 size_t free_amount = 0; in _mysqlnd_free()
529 free_amount = *(size_t *)(((char*)ptr) - sizeof(size_t)); in _mysqlnd_free()
530 TRACE_ALLOC_INF_FMT("ptr=%p size=%u", ((char*)ptr) - sizeof(size_t), (unsigned int) free_amount); in _mysqlnd_free()
544 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, zend_bool persistent MYSQLND… in _mysqlnd_pememdup()
565 *(size_t *) ret = length; in _mysqlnd_pememdup()
575 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLN… in _mysqlnd_pestrndup()
591 size_t l = length; in _mysqlnd_pestrndup()
601 *(size_t *) ret = length; in _mysqlnd_pestrndup()
634 ret = pemalloc_rel(ZSTR_LEN(tmp_str.s) + sizeof(size_t), persistent); in _mysqlnd_pestrdup()
638 *(size_t *) ret = ZSTR_LEN(tmp_str.s); in _mysqlnd_pestrdup()
661 static int _mysqlnd_sprintf(char ** pbuf, size_t max_len, const char *format, ...) in _mysqlnd_sprintf()
673 static int _mysqlnd_vsprintf(char ** pbuf, size_t max_len, const char * format, va_list ap) in _mysqlnd_vsprintf()
684 static void * mysqlnd_zend_mm_emalloc(size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_emalloc()
692 static void * mysqlnd_zend_mm_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
700 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc()
708 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLN… in mysqlnd_zend_mm_pecalloc()
716 static void * mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_erealloc()
724 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc()
748 static void * mysqlnd_zend_mm_malloc(size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_malloc()
756 static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_calloc()
764 static void * mysqlnd_zend_mm_realloc(void * ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_realloc()
780 static char * mysqlnd_zend_mm_pememdup(const char * const ptr, size_t length, zend_bool persistent … in mysqlnd_zend_mm_pememdup()
792 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent… in mysqlnd_zend_mm_pestrndup()