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

Method isFileValid

Core/MemoryFile.h:177–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176#ifndef MMKV_WIN32
177 bool isFileValid() { return (m_isMayflyFD || m_diskFile.isFileValid()) && m_size > 0 && m_ptr; }
178#else
179 bool isFileValid() { return (m_isMayflyFD || (m_diskFile.isFileValid() && m_fileMapping)) && m_size > 0 && m_ptr; }
180#endif

Callers

nothing calls this directly

Calls 1

isFileValidMethod · 0.45

Tested by

no test coverage detected