MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / getContents

Method getContents

Bcore/src/main/cpp/Dobby/tests/catch.hpp:8138–8146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8136}
8137
8138std::string TempFile::getContents() {
8139 std::stringstream sstr;
8140 char buffer[100] = {};
8141 std::rewind(m_file);
8142 while (std::fgets(buffer, sizeof(buffer), m_file)) {
8143 sstr << buffer;
8144 }
8145 return sstr.str();
8146}
8147
8148OutputRedirect::OutputRedirect(std::string &stdout_dest, std::string &stderr_dest)
8149 : m_originalStdout(dup(1)), m_originalStderr(dup(2)), m_stdoutDest(stdout_dest), m_stderrDest(stderr_dest) {

Callers 1

~OutputRedirectMethod · 0.80

Calls 1

strMethod · 0.45

Tested by

no test coverage detected