MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / read

Function read

3rdparty/cppdap/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 10

TESTFunction · 0.70
read_spawned_task_errorFunction · 0.50
elf_parse.hFile · 0.50
GetNextLineMethod · 0.50
handle_connectMethod · 0.50
getCursorPositionFunction · 0.50
completeLineFunction · 0.50
linenoiseEditFunction · 0.50
linenoisePrintKeyCodesFunction · 0.50
runMethod · 0.50

Calls 2

readMethod · 0.45
isOpenMethod · 0.45

Tested by

no test coverage detected