| 93 | } |
| 94 | |
| 95 | std::optional<std::wstring> TraceLoggingContext::GetTraceEventInfoString(unsigned offset) const { |
| 96 | if (mTraceEventInfoBuffer.empty()) { |
| 97 | pmlog_warn("mTraceEventInfoBuffer is empty"); |
| 98 | return std::nullopt; |
| 99 | } |
| 100 | return std::wstring(reinterpret_cast<const wchar_t*>(mTraceEventInfoBuffer.data() + offset)); |
| 101 | } |
| 102 | |
| 103 | std::optional<std::wstring> TraceLoggingContext::GetEventName() |
| 104 | { |
no test coverage detected