MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / write_file

Function write_file

tests/gguf-model-data.cpp:403–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static bool write_file(const std::string & path, const std::vector<char> & data) {
404 std::ofstream f(path, std::ios::binary | std::ios::trunc);
405 if (!f.good()) {
406 return false;
407 }
408 f.write(data.data(), (std::streamsize)data.size());
409 return f.good();
410}
411
412// HuggingFace file auto-detection and HTTP download
413static std::pair<long, std::vector<char>> gguf_http_get(

Callers 1

fetch_and_parseFunction · 0.70

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected