AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ADynamicPipe Class Reference

An asynchronous buffer that converts an IInputStream to IOutputStream (and otherwise). More...

#include <AUI/IO/ADynamicPipe.h>

Detailed Description

ADynamicPipe is similar to the unix pipes. It's slower than APipe but it's capable to store any byte count.

Unlike APipe, ADynamicPipe never blocks the thread which can be useful in an asynchronous system.

Member Function Documentation

> All members, including inherited

◆ read()

size_t ADynamicPipe::read ( char * dst,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
dstdestination buffer
sizedestination buffer's size. > 0
Returns
number of read bytes (including 0)

Implements IInputStream.

◆ write()

void ADynamicPipe::write ( const char * src,
size_t size )
overridevirtual
Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
srcsource buffer
sizesource buffer's size. > 0

Implements IOutputStream.