MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / helper_write

Function helper_write

subprojects/llama.cpp/tests/test-gguf.cpp:155–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154template <typename T>
155static void helper_write(FILE * file, const T & val) {
156 GGML_ASSERT(fwrite(&val, 1, sizeof(val), file) == sizeof(val));
157}
158
159static void helper_write(FILE * file, const void * data, const size_t nbytes) {
160 GGML_ASSERT(fwrite(data, 1, nbytes, file) == nbytes);

Callers 1

get_handcrafted_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected