Home
last modified time | relevance | path

Searched refs:data_p (Results 1 – 2 of 2) sorted by relevance

/lvgl-2.7.6/src/lv_misc/
Dlv_mem.c289 void * lv_mem_realloc(void * data_p, size_t new_size) in lv_mem_realloc() argument
301 if(data_p != NULL) { in lv_mem_realloc()
302 lv_mem_ent_t * e = (lv_mem_ent_t *)((uint8_t *)data_p - sizeof(lv_mem_header_t)); in lv_mem_realloc()
304 data_p = NULL; in lv_mem_realloc()
308 uint32_t old_size = _lv_mem_get_size(data_p); in lv_mem_realloc()
309 if(old_size == new_size) return data_p; /*Also avoid reallocating the same memory*/ in lv_mem_realloc()
314 lv_mem_ent_t * e = (lv_mem_ent_t *)((uint8_t *)data_p - sizeof(lv_mem_header_t)); in lv_mem_realloc()
327 if(data_p != NULL) { in lv_mem_realloc()
330 _lv_memcpy(new_p, data_p, LV_MATH_MIN(new_size, old_size)); in lv_mem_realloc()
331 lv_mem_free(data_p); in lv_mem_realloc()
[all …]
Dlv_mem.h97 void * lv_mem_realloc(void * data_p, size_t new_size);