Add default constructor

This commit is contained in:
Georg Hagen
2024-10-15 21:18:56 +02:00
parent f5d5940f98
commit 8bc6de33ce

View File

@@ -27,6 +27,8 @@ namespace OpenVulkano
READ_WRITE
};
MemMappedFile() : m_data(nullptr), m_size(0) {}
MemMappedFile(const std::filesystem::path& path, FileMode fileMode = READ_ONLY);
[[nodiscard]] bool IsOpen() const { return m_data; }