MCPcopy Create free account
hub / github.com/Niko1221/Strata / write

Function write

engine/src/split/tools/gguf_test.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62std::string write(const std::string& dir, const std::string& tag, const std::vector<uint8_t>& b) {
63 const std::string path = dir + "/fnx_gguf_test_" + tag + ".gguf";
64 FILE* f = std::fopen(path.c_str(), "wb");
65 if (!f || std::fwrite(b.data(), 1, b.size(), f) != b.size() || std::fclose(f) != 0)
66 throw std::runtime_error("cannot write " + path);
67 return path;
68}
69
70int failures = 0;
71

Callers 6

expect_refusedFunction · 0.70
mainFunction · 0.70
write_run_scriptFunction · 0.50
stall_reportFunction · 0.50
write_allMethod · 0.50
wrMethod · 0.50

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected