MCPcopy Create free account
hub / github.com/Tencent/MMKV / MemoryFile

Method MemoryFile

Core/MemoryFile.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55MemoryFile::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected