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

Method openIfNeeded

Core/MemoryFile.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool MemoryFile::openIfNeeded() {
134 if (!m_diskFile.isFileValid()) {
135 return m_diskFile.open();
136 }
137 return true;
138}
139
140void MemoryFile::cleanMayflyFD() {
141 if (m_isMayflyFD && m_diskFile.isFileValid()) {

Callers

nothing calls this directly

Calls 2

isFileValidMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected