MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / gguf_buf_init

Function gguf_buf_init

ggml.c:20207–20215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20205};
20206
20207static struct gguf_buf gguf_buf_init(size_t size) {
20208 struct gguf_buf buf = {
20209 /*buf.data =*/ size == 0 ? NULL : malloc(size),
20210 /*buf.size =*/ size,
20211 /*buf.offset =*/ 0,
20212 };
20213
20214 return buf;
20215}
20216
20217static void gguf_buf_free(struct gguf_buf buf) {
20218 if (buf.data) {

Callers 3

gguf_write_to_fileFunction · 0.85
gguf_get_meta_sizeFunction · 0.85
gguf_get_meta_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected