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

Function ReadAllText_

IntelPresentMon/PresentMonAPI2Tests/LoggingTests.cpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 std::string ReadAllText_(const fs::path& path)
45 {
46 std::ifstream file{ path, std::ios::binary };
47 if (!file) {
48 return {};
49 }
50 return std::string{ std::istreambuf_iterator<char>{ file }, std::istreambuf_iterator<char>{} };
51 }
52
53 bool WaitForLogContains_(const fs::path& path, const std::string& needle, std::chrono::milliseconds timeout)
54 {

Callers 1

WaitForLogContains_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected