encrypt files

This commit is contained in:
2025-11-03 12:12:43 +01:00
parent cf1ac6d556
commit 5d9850a781
7 changed files with 66 additions and 24 deletions

View File

@@ -29,4 +29,12 @@ using f64 = double;
inline std::string path_to_filename(const std::string &path) {
u64 pos = path.find_last_of("/\\");
return (pos == std::string::npos) ? path : path.substr(pos + 1);
}
}
template <typename T> constexpr char *to_char_ptr(T *ptr) noexcept {
return reinterpret_cast<char *>(ptr);
}
template <typename T> constexpr const char *to_char_ptr(const T *ptr) noexcept {
return reinterpret_cast<const char *>(ptr);
}