A dynamic string buffer.
More...
#include <RTDynamicStringOutBuffer.h>
|
virtual int | write (const char *data, int size) override |
| Write a string to the buffer.
|
|
virtual int | flush (void) override |
| Flushes the data written to the buffer.
|
|
const char * | getString () |
| Get a pointer to the buffer string (owned by this buffer).
|
|
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.
|
|
◆ flush()
virtual int RTDynamicStringOutBuffer::flush |
( |
void |
| ) |
|
|
overridevirtual |
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.
- Returns
- 1 if successful, 0 otherwise
Implements RTOBuffer.
◆ getString()
const char * RTDynamicStringOutBuffer::getString |
( |
| ) |
|
Get a pointer to the buffer string (owned by this buffer).
- Returns
- Pointer to the buffer string
◆ write()
virtual int RTDynamicStringOutBuffer::write |
( |
const char * |
data, |
|
|
int |
size |
|
) |
| |
|
overridevirtual |
Write a string to the buffer.
- Parameters
-
[in] | data | A string to write to the buffer. |
[in] | size | The size of the string to write to the buffer. |
- Returns
- The number of bytes written to the buffer
Implements RTOBuffer.
The documentation for this class was generated from the following file: