Reading end of an unidirectional pipe. More...
#include <userver/engine/io/pipe.hpp>
Inheritance diagram for engine::io::PipeReader:
Collaboration diagram for engine::io::PipeReader:Public Member Functions | |
| bool | IsValid () const override |
| Whether the reading end of the pipe is valid. | |
| bool | WaitReadable (Deadline) override |
| Suspends current task until the pipe has data available. | |
| size_t | ReadSome (void *buf, size_t len, Deadline deadline) override |
| Receives at least one bytes from the pipe. | |
| size_t | ReadAll (void *buf, size_t len, Deadline deadline) override |
| int | Fd () const |
| File descriptor corresponding to the read end of the pipe. | |
| int | Release () noexcept |
| Releases reading end file descriptor and invalidates it. | |
| void | Close () |
Friends | |
| class | Pipe |
| void engine::io::PipeReader::Close | ( | ) |
Closes and invalidates the reading end of the pipe.
|
overridevirtual |
Whether the reading end of the pipe is valid.
Implements engine::io::ReadableBase.
|
overridevirtual |
Receives exactly len bytes from the pipe.
Implements engine::io::ReadableBase.
|
overridevirtual |
Receives at least one bytes from the pipe.
Implements engine::io::ReadableBase.
|
overridevirtual |
Suspends current task until the pipe has data available.
Implements engine::io::ReadableBase.