C++ TargetRTS
|
Represents an output buffer. More...
#include <RTOBuffer.h>
Public Member Functions | |
virtual int | write (const char *data, int size)=0 |
Write a string to the buffer. | |
virtual int | flush (void)=0 |
Flushes the data written to the buffer. | |
Represents an output buffer.
|
pure virtual |
Flushes the data written to the buffer.
For some output buffers, the written data will not appear in the output until flush() has been called. For others explicit flushing is not needed.
Implemented in RTDynamicStringOutBuffer, RTMemoryOutBuffer, RTDiagBuffer, RTLogBuffer, and RTTcpOutBuffer.
|
pure virtual |
Write a string to the buffer.
[in] | data | A string to write to the buffer. |
[in] | size | The size of the string to write to the buffer. |
Implemented in RTDynamicStringOutBuffer, RTMemoryOutBuffer, and RTStreamBuffer.