Home
last modified time | relevance | path

Searched refs:key_length (Results 1 – 4 of 4) sorted by relevance

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_texture_cache.c43 …_cache_value_t * draw_cache_get_entry(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length,
68 …w_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, bool * found) in lv_draw_sdl_texture_cache_get() argument
70 return lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_length, found, NULL); in lv_draw_sdl_texture_cache_get()
73 …w_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, in lv_draw_sdl_texture_cache_get_with_userdata() argument
76 draw_cache_value_t * value = draw_cache_get_entry(ctx, key, key_length, found); in lv_draw_sdl_texture_cache_get_with_userdata()
84 bool lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD… in lv_draw_sdl_texture_cache_put() argument
86 return lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put()
89 …v_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, in lv_draw_sdl_texture_cache_put_advanced() argument
100 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced()
105 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced()
[all …]
Dlv_draw_sdl_texture_cache.h80 …_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, bool * found);
82 …w_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length,
88 bool lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD…
93 …v_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length,
/lvgl-3.7.0/src/misc/
Dlv_lru.c29 size_t key_length; member
43 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length);
46 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length);
137 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… in lv_lru_set() argument
145 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set()
150 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set()
167 item->key = lv_mem_alloc(key_length); in lv_lru_set()
168 memcpy(item->key, key, key_length); in lv_lru_set()
170 item->key_length = key_length; in lv_lru_set()
266 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length) in lv_lru_hash() argument
[all …]
Dlv_lru.h66 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t…