MCPcopy Create free account
hub / github.com/ceph/ceph / overflow

Method overflow

src/common/SubProcess.cc:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 {}
124protected:
125 int_type overflow (int_type c) override {
126 if (c == EOF) return EOF;
127 char buf = c;
128 if (write (fd, &buf, 1) != 1) {
129 return EOF;
130 }
131 return c;
132 }
133 std::streamsize xsputn (const char* s, std::streamsize count) override {
134 return write(fd, s, count);
135 }

Callers

nothing calls this directly

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected