API to remap/rewind + mapping in write mode.

This commit is contained in:
antirez
2023-12-25 10:45:38 +01:00
parent f400e8a36f
commit 3eb30c1872
2 changed files with 46 additions and 23 deletions

View File

@@ -159,6 +159,8 @@ typedef struct {
/* =============================== Prototypes =============================== */
gguf_ctx *gguf_init(char *filename);
int gguf_remap(gguf_ctx *ctx);
void gguf_rewind(gguf_ctx *ctx);
void gguf_end(gguf_ctx *ctx);
int gguf_get_key(gguf_ctx *ctx, gguf_key *key);
int gguf_get_tensor(gguf_ctx *ctx, gguf_tensor *tensor);