Implementation of ByteSink that writes to a "string". More...
#include <bytestream.h>
Public Member Functions | |
| StringByteSink (StringClass *dest) | |
| Constructs a ByteSink that will append bytes to the dest string. | |
| virtual void | Append (const char *data, int32_t n) |
| Append "bytes[0,n-1]" to this. | |
Implementation of ByteSink that writes to a "string".
The StringClass is usually instantiated with a std::string.
Definition at line 207 of file bytestream.h.
| StringByteSink< StringClass >::StringByteSink | ( | StringClass * | dest | ) | [inline] |
Constructs a ByteSink that will append bytes to the dest string.
| dest | pointer to string object to append to |
Definition at line 214 of file bytestream.h.
| virtual void StringByteSink< StringClass >::Append | ( | const char * | data, | |
| int32_t | n | |||
| ) | [inline, virtual] |
Append "bytes[0,n-1]" to this.
| data | the pointer to the bytes | |
| n | the number of bytes; must be non-negative |
Implements ByteSink.
Definition at line 221 of file bytestream.h.
1.6.1