|
| | Pipe (std::string name, std::size_t capacity=1024) |
| | Creates a pipe with a logical name and capacity.
|
| | ~Pipe () override |
| | Pipe (const Pipe &)=delete |
| Pipe & | operator= (const Pipe &)=delete |
| | Pipe (Pipe &&) noexcept |
| Pipe & | operator= (Pipe &&) noexcept |
| Result< std::size_t > | write (std::span< const std::byte > data) override |
| | Writes bytes into the pipe buffer.
|
| Result< std::size_t > | read (std::span< std::byte > buffer) override |
| | Reads bytes from the pipe buffer in FIFO order.
|
| void | close () override |
| | Closes the pipe and clears buffered data.
|
| bool | isOpen () const noexcept override |
| | Returns whether the pipe is open.
|
| std::string_view | name () const noexcept override |
| | Pipe name.
|
| std::size_t | capacity () const noexcept |
| | Maximum number of bytes that can be buffered.
|
| std::size_t | size () const noexcept |
| | Current number of buffered bytes.
|
| virtual | ~IIpcChannel ()=default |
Unidirectional byte-stream IPC channel with bounded capacity.
Pipe stores bytes in FIFO order. Reads consume bytes from the front.
Definition at line 16 of file pipe.h.