| 241 | } |
| 242 | |
| 243 | size_t Coprocess::write_stdin (void* handle, const void* buf, size_t count) |
| 244 | { |
| 245 | DWORD bytes_written; |
| 246 | if (!WriteFile(static_cast<Coprocess*>(handle)->stdin_pipe_writer, buf, count, &bytes_written, nullptr)) { |
| 247 | throw System_error("WriteFile", "", GetLastError()); |
| 248 | } |
| 249 | return bytes_written; |
| 250 | } |
| 251 | |
| 252 | size_t Coprocess::read_stdout (void* handle, void* buf, size_t count) |
| 253 | { |
nothing calls this directly
no test coverage detected