| 11 | } |
| 12 | |
| 13 | ssize_t TPipeHandle::Write(const void* buffer, size_t byteCount) const noexcept { |
| 14 | #ifdef _win_ |
| 15 | return send(Fd_, (const char*)buffer, byteCount, 0); |
| 16 | #else |
| 17 | return write(Fd_, buffer, byteCount); |
| 18 | #endif |
| 19 | } |
| 20 | |
| 21 | bool TPipeHandle::Close() noexcept { |
| 22 | bool ok = true; |