MCPcopy Create free account
hub / github.com/baidu/babylon / read_pipe

Method read_pipe

test/logging/test_async_file_appender.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void read_pipe(char* data, size_t size) {
50 while (size > 0) {
51 auto got = ::read(pipefd[0], data, size);
52 data += got;
53 size -= got;
54 }
55 }
56
57 int pipefd[2];
58 StaticFileObject file_object;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected