Skip to content

APipe#

A thread safe buffer that converts an IInputStream to IOutputStream (and otherwise).

Header:#include <AUI/IO/APipe.h>
CMake:aui_link(my_target PUBLIC aui::core)

Detailed Description#

APipe is similar to the unix pipes. It's capable to store up to 65,536 bytes. It's implemented like a ring buffer. If this limit is reached, a write() method blocks thread until buffer is read from.

If capacity may be not enough, consider to use ADynamicPipe instead.