| 19870 | } |
| 19871 | |
| 19872 | const char * gguf_get_arr_str(const struct gguf_context * ctx, int key_id, int i) { |
| 19873 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_ARRAY); |
| 19874 | struct gguf_kv * kv = &ctx->kv[key_id]; |
| 19875 | struct gguf_str * str = &((struct gguf_str *) kv->value.arr.data)[i]; |
| 19876 | return str->data; |
| 19877 | } |
| 19878 | |
| 19879 | int gguf_get_arr_n(const struct gguf_context * ctx, int key_id) { |
| 19880 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_ARRAY); |
no outgoing calls
no test coverage detected