diff options
author | Roland Reichwein <mail@reichwein.it> | 2022-11-05 13:49:53 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2022-11-05 13:49:53 +0100 |
commit | 4aeab7931182cb1c35bd5c52b58d71b30c32674d (patch) | |
tree | e9635c5b2c0827f16dc2021a6193139ef536793b /file.h |
Initial files, WIP
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#pragma once + +#include <cstdint> +#include <filesystem> +#include <string> +#include <vector> + +namespace File { + +std::string getFile(const std::filesystem::path& filename); +void setFile(const std::filesystem::path& filename, const std::string& s); +void setFile(const std::filesystem::path& filename, const char* data, size_t size); +void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data); + +} |