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

Method Read

util/system/shellcommand.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 ssize_t Read(void* buffer, size_t byteCount) const noexcept {
161 DWORD doneBytes;
162 if (!ReadFile(Fd_, buffer, byteCount, &doneBytes, nullptr)) {
163 return -1;
164 }
165 return doneBytes;
166 }
167 ssize_t Write(const void* buffer, size_t byteCount) const noexcept {
168 DWORD doneBytes;
169 if (!WriteFile(Fd_, buffer, byteCount, &doneBytes, nullptr)) {

Callers 3

ReadStreamMethod · 0.45
WriteStreamMethod · 0.45
CommunicateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected