| 49 | extern size_t ASharedMemory_getSize(int fd); |
| 50 | # else |
| 51 | File::File(MMKVPath_t path, OpenFlag flag) : m_path(std::move(path)), m_fd(-1), m_flag(flag) { |
| 52 | open(); |
| 53 | } |
| 54 | |
| 55 | MemoryFile::MemoryFile(MMKVPath_t path, size_t expectedCapacity, bool readOnly, bool mayflyFD) |
| 56 | : m_diskFile(std::move(path), readOnly ? OpenFlag::ReadOnly : (OpenFlag::ReadWrite | OpenFlag::Create)) |
nothing calls this directly
no outgoing calls
no test coverage detected