fs::file: add from_native_handle constructor

fs::get_*_dir tweaks for android
This commit is contained in:
DH 2025-02-28 20:58:02 +03:00 committed by Megamouse
parent 2c122a4401
commit f3d988d8ab
2 changed files with 422 additions and 376 deletions

View file

@ -251,6 +251,12 @@ namespace fs
// Open file with specified mode
explicit file(const std::string& path, bs_t<open_mode> mode = ::fs::read);
#ifdef _WIN32
static file from_native_handle(void *handle);
#else
static file from_native_handle(int fd);
#endif
// Open memory for read
explicit file(const void* ptr, usz size);