Added more utility and fixed Flag type.

This commit is contained in:
2023-07-08 11:16:37 +02:00
parent 537229104d
commit 04520a5d35
5 changed files with 106 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ public:
~FileStream() override;
StreamError open(const char* path, FileOpenMode mode_);
inline StreamError open(const std::string& path, FileOpenMode mode_) {
return open(path.c_str(), mode_);
}
void close();
[[nodiscard]] inline bool isOpen() const { return handle != nullptr; }