Searched refs:json_buf (Results 1 – 1 of 1) sorted by relevance
1621 char *json_buf = NULL; in loader_get_json() local1654 … json_buf = (char *)loader_instance_heap_alloc(inst, len + 1, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND); in loader_get_json()1655 if (json_buf == NULL) { in loader_get_json()1661 if (fread(json_buf, sizeof(char), len, file) != len) { in loader_get_json()1666 json_buf[len] = '\0'; in loader_get_json()1674 *json = cJSON_Parse(inst ? &inst->alloc_callbacks : NULL, json_buf); in loader_get_json()1683 loader_instance_heap_free(inst, json_buf); in loader_get_json()