MCPcopy Create free account
hub / github.com/dfranx/SHADERed / read

Function read

libs/cppdap/src/network_test.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::string read(const std::shared_ptr<dap::Reader>& r) {
33 char c;
34 std::string s;
35 while (r->read(&c, sizeof(c)) > 0) {
36 if (c == '\0') {
37 return s;
38 }
39 s += c;
40 }
41 return r->isOpen() ? "<read failed>" : "<stream closed>";
42}
43
44} // anonymous namespace
45

Callers 5

m_trackWorkerMethod · 0.85
TESTFunction · 0.85
zip_fileClass · 0.85
readMethod · 0.85
testzipMethod · 0.85

Calls 2

readMethod · 0.45
isOpenMethod · 0.45

Tested by

no test coverage detected