move to read only memory mapped files

This commit is contained in:
Green Sky
2025-03-15 19:54:45 +01:00
parent f5f7f2ca9d
commit a094a3d574
5 changed files with 78 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
#include "./file_constructor.hpp"
#include "./file_rw_mapped.hpp"
#include "./file2_mapped.hpp"
std::unique_ptr<File2I> construct_file2_rw_mapped(std::string_view file_path, int64_t file_size) {
return std::make_unique<File2RWMapped>(file_path, file_size);
}
std::unique_ptr<File2I> construct_file2_r_mapped(std::string_view file_path) {
return std::make_unique<File2RMapped>(file_path);
}