| 20385 | } |
| 20386 | |
| 20387 | size_t gguf_get_meta_size(const struct gguf_context * ctx) { |
| 20388 | // no allocs - only compute size |
| 20389 | struct gguf_buf buf = gguf_buf_init(0); |
| 20390 | |
| 20391 | gguf_write_to_buf(ctx, &buf, true); |
| 20392 | |
| 20393 | return buf.offset; |
| 20394 | } |
| 20395 | |
| 20396 | void gguf_get_meta_data(const struct gguf_context * ctx, void * data) { |
| 20397 | struct gguf_buf buf = gguf_buf_init(16*1024); |
no test coverage detected