| 31 | } |
| 32 | |
| 33 | bool 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 |
no test coverage detected