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

Function MMKVPath_t2String

Core/MemoryFile_Win32.cpp:687–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687std::string MMKVPath_t2String(const MMKVPath_t &str) {
688 auto length = WideCharToMultiByte(CP_UTF8, 0, str.c_str(), -1, nullptr, 0, 0, 0);
689 auto buffer = new char[length];
690 WideCharToMultiByte(CP_UTF8, 0, str.c_str(), -1, buffer, length, 0, 0);
691 string result(buffer);
692 delete[] buffer;
693 return result;
694}
695
696#endif // MMKV_WIN32

Callers 15

initializeMMKVMethod · 0.85
getMMKVWithIDMethod · 0.85
backupOneToDirectoryMethod · 0.85
backupAllToDirectoryMethod · 0.85
getStorageFunction · 0.85
FileMethod · 0.85
absolutePathFunction · 0.85
mkPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected