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

Method cleanMayflyFD

Core/MemoryFile_Win32.cpp:270–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270void MemoryFile::cleanMayflyFD() {
271 if (m_isMayflyFD) {
272 if (m_diskFile.isFileValid()) {
273 m_diskFile.close();
274 }
275 if (m_fileMapping) {
276 CloseHandle(m_fileMapping);
277 m_fileMapping = nullptr;
278 }
279 }
280}
281
282size_t MemoryFile::getActualFileSize() {
283 if (!m_isMayflyFD && !m_diskFile.isFileValid()) {

Callers

nothing calls this directly

Calls 2

isFileValidMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected