diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/pipe.cpp | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/pipe.cpp')
-rw-r--r-- | util/system/pipe.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/pipe.cpp b/util/system/pipe.cpp index a543bd7472..fb3d8229a0 100644 --- a/util/system/pipe.cpp +++ b/util/system/pipe.cpp @@ -3,7 +3,7 @@ #include <util/stream/output.h> #include <util/generic/yexception.h> -ssize_t TPipeHandle::Read(void* buffer, size_t byteCount) const noexcept { +ssize_t TPipeHandle::Read(void* buffer, size_t byteCount) const noexcept { #ifdef _win_ return recv(Fd_, (char*)buffer, byteCount, 0); #else @@ -11,7 +11,7 @@ ssize_t TPipeHandle::Read(void* buffer, size_t byteCount) const noexcept { #endif } -ssize_t TPipeHandle::Write(const void* buffer, size_t byteCount) const noexcept { +ssize_t TPipeHandle::Write(const void* buffer, size_t byteCount) const noexcept { #ifdef _win_ return send(Fd_, (const char*)buffer, byteCount, 0); #else @@ -19,7 +19,7 @@ ssize_t TPipeHandle::Write(const void* buffer, size_t byteCount) const noexcept #endif } -bool TPipeHandle::Close() noexcept { +bool TPipeHandle::Close() noexcept { bool ok = true; if (Fd_ != INVALID_PIPEHANDLE) { #ifdef _win_ @@ -94,7 +94,7 @@ public: } } - TPipeHandle& GetHandle() noexcept { + TPipeHandle& GetHandle() noexcept { return Handle_; } @@ -134,11 +134,11 @@ void TPipe::Close() { Impl_->Close(); } -PIPEHANDLE TPipe::GetHandle() const noexcept { +PIPEHANDLE TPipe::GetHandle() const noexcept { return Impl_->GetHandle(); } -bool TPipe::IsOpen() const noexcept { +bool TPipe::IsOpen() const noexcept { return Impl_->IsOpen(); } |