MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / write_file

Function write_file

RecompModMerger/main.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool write_file(const std::filesystem::path& p, std::span<char> in) {
28 std::ofstream out{ p, std::ios::binary };
29 if (!out.good()) {
30 return false;
31 }
32
33 out.write(in.data(), in.size());
34 return true;
35}
36
37std::span<uint8_t> reinterpret_span_u8(std::span<char> s) {
38 return std::span(reinterpret_cast<uint8_t*>(s.data()), s.size());

Callers 1

mainFunction · 0.85

Calls 1

goodMethod · 0.45

Tested by

no test coverage detected