| 41 | static bool ftruncate(MMKVFileHandle_t file, size_t size); |
| 42 | |
| 43 | File::File(MMKVPath_t path, OpenFlag flag) |
| 44 | : m_path(std::move(path)), m_utf8Path(MMKVPath_t2String(m_path)), m_fd(INVALID_HANDLE_VALUE), m_flag(flag) { |
| 45 | open(); |
| 46 | } |
| 47 | |
| 48 | static pair<int, int> OpenFlag2NativeFlag(OpenFlag flag) { |
| 49 | int access = 0, create = OPEN_EXISTING; |
nothing calls this directly
no test coverage detected