43 std::vector<std::byte>
readFileBytes(
const std::filesystem::path& path);
61 bool writeFileBytes(
const std::filesystem::path& path,
const std::vector<std::byte>& bytes,
bool overwrite =
true);
Definition codehelpers.h:32
const T & unmove(T &&t)
Unmoves a value.
Definition codehelpers.h:50
std::string getLastSystemError()
Get the last system api call error message.
bool writeFileBytes(const std::filesystem::path &path, const std::vector< std::byte > &bytes, bool overwrite=true)
Writes a vector of bytes to a file.
std::vector< std::byte > readFileBytes(const std::filesystem::path &path)
Reads a file as a vector of bytes.