MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / flush

Method flush

source/matplot/util/popen.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223int opipe::flush(std::string_view data)
224{
225 if (!opened())
226 return report(EINVAL, "opipe::flush");
227 if (!data.empty())
228 if (auto err = write(data); err != 0)
229 return report(err, "opipe::write");
230 if (auto res = std::fflush(file_); res != 0)
231 return report(errno, "fflush");
232 return 0;
233}
234
235int ipipe::read(std::string &data)
236{

Callers 1

flush_commandsMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected