diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-02 16:32:01 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-02 16:32:01 +0100 |
commit | d00dc2c69164d8a8850d317f2868c6f131b7f679 (patch) | |
tree | c206c5088be0ed2fa0af692f1e0bc739f66d0b0a /file.h |
First lib versionv1.0
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); + +} |