MCPcopy Create free account
hub / github.com/catboost/catboost / DoWrite

Method DoWrite

util/stream/pipe.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void TPipeOutput::DoWrite(const void* buf, size_t len) {
70 if (Impl_->Pipe_ == nullptr || len != ::fwrite(buf, 1, len, Impl_->Pipe_)) {
71 ythrow TSystemError() << "fwrite failed";
72 }
73}
74
75void TPipeOutput::Close() {
76 int exitStatus = ::pclose(Impl_->Pipe_);

Callers

nothing calls this directly

Calls 2

IsOpenMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected