-------------------------------------------------------------------------
| 55 | |
| 56 | //------------------------------------------------------------------------- |
| 57 | std::unique_ptr<MappedFile> MappedFile::TryCreate(const std::filesystem::path& path) |
| 58 | { |
| 59 | if (!FileExists(path) || std::filesystem::file_size(path) == 0) |
| 60 | return nullptr; |
| 61 | return std::unique_ptr<MappedFile>(new MappedFile{ path }); |
| 62 | } |
| 63 | } |
nothing calls this directly
no test coverage detected