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

Function main

Win32/Win32DemoProcess/Win32DemoProcess.cpp:70–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70int main() {
71 //locale::global(locale(".UTF8"));
72 //SetConsoleOutputCP(CP_UTF8);
73 //SetConsoleCP(CP_UTF8);
74 //wcout.imbue(locale(""));
75 srand(GetTickCount());
76
77 wstring rootDir = getAppDataRoaming(L"Tencent", L"微信-MMKV");
78 MMKV::initializeMMKV(rootDir);
79
80 auto processID = GetCurrentProcessId();
81 cout << processID << ": started\n";
82
83 for (size_t index = 0; index < keyCount; index++) {
84 arrIntKeys.push_back("int-" + to_string(index));
85 arrStringKeys.push_back("string-" + to_string(index));
86 }
87 brutleTest(processID);
88
89 cout << processID << ": ended\n";
90}

Callers

nothing calls this directly

Calls 3

getAppDataRoamingFunction · 0.70
brutleTestFunction · 0.70
to_stringFunction · 0.50

Tested by

no test coverage detected