| 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)) |
| 57 | , m_ptr(nullptr), m_size(0), m_readOnly(readOnly), m_isMayflyFD(mayflyFD) |
| 58 | { |
| 59 | reloadFromFile(expectedCapacity); |
| 60 | } |
| 61 | # endif // !defined(MMKV_ANDROID) |
| 62 | |
| 63 | # ifdef MMKV_IOS |
nothing calls this directly
no outgoing calls
no test coverage detected