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

Method Read

util/system/pipe.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <util/generic/yexception.h>
4
5ssize_t TPipeHandle::Read(void* buffer, size_t byteCount) const noexcept {
6#ifdef _win_
7 return recv(Fd_, (char*)buffer, byteCount, 0);
8#else
9 return read(Fd_, buffer, byteCount);
10#endif
11}
12
13ssize_t TPipeHandle::Write(const void* buffer, size_t byteCount) const noexcept {
14#ifdef _win_

Callers 10

DoReadMethod · 0.45
ResolveAddrMethod · 0.45
Y_UNIT_TESTFunction · 0.45
ReadMethod · 0.45
Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45
with_lockMethod · 0.45
TestReadMethod · 0.45
Y_UNIT_TESTFunction · 0.45
TestHugeFileFunction · 0.45

Calls 1

readFunction · 0.50

Tested by 2

TestReadMethod · 0.36
TestHugeFileFunction · 0.36