| 66 | } |
| 67 | |
| 68 | static size_t getFileLength(FILE* fs) |
| 69 | { |
| 70 | const auto current = fileTell(fs); |
| 71 | fileSeek(fs, 0, SEEK_END); |
| 72 | const auto length = fileTell(fs); |
| 73 | fileSeek(fs, current, SEEK_SET); |
| 74 | return length; |
| 75 | } |
| 76 | |
| 77 | FileStream::FileStream(const std::filesystem::path& path, StreamMode mode) |
| 78 | { |