| 113 | } |
| 114 | |
| 115 | bool SaveFile(std::wstring const& path, std::vector<uint8_t> const& body) |
| 116 | { |
| 117 | std::ofstream f(path, std::ios::binary | std::ios::out); |
| 118 | if (!f.good()) { |
| 119 | return false; |
| 120 | } |
| 121 | |
| 122 | f.write(reinterpret_cast<char const*>(body.data()), body.size()); |
| 123 | return f.good(); |
| 124 | } |
| 125 | |
| 126 | bool SaveFile(std::wstring const& path, std::string_view body) |
| 127 | { |
no test coverage detected