Lines Matching refs:allocated_count
270 VkResult create_string_list(const struct loader_instance *inst, uint32_t allocated_count, struct loader_string_list *string_list) {
272 string_list->list = loader_instance_heap_calloc(inst, sizeof(char *) * allocated_count, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
276 string_list->allocated_count = allocated_count;
283 if (string_list->allocated_count == 0) {
284 string_list->allocated_count = 32;
286 loader_instance_heap_calloc(inst, sizeof(char *) * string_list->allocated_count, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
290 } else if (string_list->count + 1 > string_list->allocated_count) {
291 uint32_t new_allocated_count = string_list->allocated_count * 2;
292 string_list->list = loader_instance_heap_realloc(inst, string_list->list, sizeof(char *) * string_list->allocated_count,
298 memset(string_list->list + string_list->allocated_count, 0, string_list->allocated_count);
299 string_list->allocated_count *= 2;