MCPcopy Create free account
hub / github.com/Norbyte/bg3se / SaveFile

Function SaveFile

CoreLib/Utils.cpp:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115bool 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
126bool SaveFile(std::wstring const& path, std::string_view body)
127{

Callers 6

SignFileMethod · 0.85
SaveFileMethod · 0.85
UpdateLocalPackageMethod · 0.85
SaveManifestMethod · 0.85
SaveFileMethod · 0.85
UpdateManifestFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected