summaryrefslogtreecommitdiffhomepage
path: root/file.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-28 22:27:01 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-28 22:27:01 +0100
commitee18ec019ef6f0ef9d7cd3b4cf0314291814cab0 (patch)
tree5f23e0bce52e24c3c04825ad008ec74a5e722a1c /file.h
parent7fdcbd50a35c17e8ea7d88fbcaa3080ee44351b3 (diff)
Add ELF handling (WIP)
Diffstat (limited to 'file.h')
-rw-r--r--file.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 0000000..bc49305
--- /dev/null
+++ b/file.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <cstdint>
+#include <filesystem>
+#include <string>
+#include <vector>
+
+namespace File {
+
+std::vector<uint8_t> 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);
+
+}