summaryrefslogtreecommitdiffhomepage
path: root/file.h
blob: 9ca846ed4ffcea4b43281dcf6afbef1c3e028571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <cstdint>
#include <filesystem>
#include <string>
#include <vector>

#define EXPORT __attribute__((visibility("default")))

namespace Reichwein::File {

EXPORT std::string getFile(const std::filesystem::path& filename);
EXPORT void setFile(const std::filesystem::path& filename, const std::string& s);
EXPORT void setFile(const std::filesystem::path& filename, const char* data, size_t size);
EXPORT void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data);

} // namespace