MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / AsWString

Method AsWString

IntelPresentMon/AppCef/source/util/CefValues.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 std::wstring CefValueTraverser::AsWString() const
136 {
137 using str::ToWide;
138 if (pCefValue->GetType() == CefValueType::VTYPE_STRING)
139 {
140 return pCefValue->GetString().ToWString();
141 }
142 pmlog_error(std::format("Cannot extract std::wstring from CEF {}", CefValueTypeToString(pCefValue->GetType())));
143 throw Except<BadCefValueTraversal>();
144 }
145
146 std::string CefValueTraverser::AsString() const
147 {

Callers 4

ToVectorMethod · 0.80
ExecuteOnRendererMethod · 0.80
ExecuteOnRendererMethod · 0.80
ExecuteOnRendererMethod · 0.80

Calls 3

CefValueTypeToStringFunction · 0.85
ToWStringMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected