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

Method File

Core/MemoryFile.cpp:51–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49extern size_t ASharedMemory_getSize(int fd);
50# else
51File::File(MMKVPath_t path, OpenFlag flag) : m_path(std::move(path)), m_fd(-1), m_flag(flag) {
52 open();
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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected