AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
IOutputStream Class Referenceabstract

Public Member Functions

virtual void write (const char *src, size_t size)=0
 Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed. More...
 
template<typename T >
void write (const T &t)
 
template<typename T >
IOutputStreamoperator<< (const T &t)
 

Member Function Documentation

◆ operator<<()

template<typename T >
IOutputStream & IOutputStream::operator<< ( const T &  t)
inline

Writes data using AUI serialization (see AUI/Traits/serializable.h)

Parameters
tvalue to write

◆ write() [1/2]

virtual void IOutputStream::write ( const char *  src,
size_t  size 
)
pure virtual

Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.

Sneaky exceptions
An implementation can throw any exception that subclasses AIOException.
Parameters
dstsource buffer
sizesource buffer's size. > 0

Implemented in ATcpSocket, AByteBuffer, ADynamicPipe, AFileOutputStream, APipe, AStringStream, PipeOutputStream, and AWebsocket.

◆ write() [2/2]

template<typename T >
void IOutputStream::write ( const T &  t)

Writes data using AUI serialization (see AUI/Traits/serializable.h)

Parameters
tvalue to write

The documentation for this class was generated from the following file:
Inheritance diagram for IOutputStream: