Simple in memory writer that just writes everything to a string.
More...
#include <Writer.h>
Simple in memory writer that just writes everything to a string.
- Note
- This will clean itself up if the other end respects ShouldDelete
| virtual trippingcyril::StringWriter::~StringWriter |
( |
| ) |
|
|
inlinevirtual |
| String& trippingcyril::StringWriter::GetBuffer |
( |
| ) |
|
|
inline |
| bool trippingcyril::StringWriter::shouldDelete |
( |
| ) |
const |
|
inlineoverridevirtual |
Return true from this method if the object should be deleted
- Returns
- True by default
Reimplemented from trippingcyril::Writer.
| int trippingcyril::StringWriter::Write |
( |
const char * |
data, |
|
|
size_t |
len |
|
) |
| |
|
overridevirtual |
Override this method with your actual write method
- Parameters
-
| data | The actual data |
| len | The length of the data |
- Returns
- You should return the amount of bytes written, should be len or < 0 on error
Implements trippingcyril::Writer.
The documentation for this class was generated from the following file: