MCPcopy Create free account
hub / github.com/Kitware/CMake / read

Function read

Utilities/cmcppdap/src/network_test.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

TESTFunction · 0.70
gz_loadFunction · 0.50
telnet_doFunction · 0.50
file_doFunction · 0.50
fixup_appledoubleFunction · 0.50
_archive_read_data_blockFunction · 0.50
arc4_stirFunction · 0.50
write_file_contentsFunction · 0.50
setup_boot_informationFunction · 0.50
zisofs_rewind_boot_fileFunction · 0.50
setup_mac_metadataFunction · 0.50

Calls 2

readMethod · 0.45
isOpenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…