MCPcopy Create free account
hub / github.com/WallBreaker2/op / WriteBinaryFile

Function WriteBinaryFile

tests/test_support.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool WriteBinaryFile(const std::wstring &path, const std::vector<uchar> &buffer) {
34 std::ofstream out(std::filesystem::path(path), std::ios::binary);
35 if (!out)
36 return false;
37 out.write(reinterpret_cast<const char *>(buffer.data()), static_cast<std::streamsize>(buffer.size()));
38 return static_cast<bool>(out);
39}
40
41} // namespace
42

Callers 1

CreateConsoleLikeBmpFunction · 0.85

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected