MCPcopy Create free account
hub / github.com/AGWA/git-crypt / write_stdin

Method write_stdin

coprocess-win32.cpp:243–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243size_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
252size_t Coprocess::read_stdout (void* handle, void* buf, size_t count)
253{

Callers

nothing calls this directly

Calls 1

System_errorClass · 0.85

Tested by

no test coverage detected