Represents an in-memory output stream. More...
#include <fwd.h>
Public Types | |
typedef Encoding::Ch | Ch |
Public Member Functions | |
void | Clear () |
void | Flush () |
GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity) | |
size_t | GetLength () const |
Get the length of string in Ch in the string buffer. More... | |
size_t | GetSize () const |
Get the size of string in bytes in the string buffer. More... | |
const Ch * | GetString () const |
void | Pop (size_t count) |
Ch * | Push (size_t count) |
Ch * | PushUnsafe (size_t count) |
void | Put (Ch c) |
void | PutUnsafe (Ch c) |
void | Reserve (size_t count) |
void | ShrinkToFit () |
Public Attributes | |
internal::Stack< Allocator > | stack_ |
Static Public Attributes | |
static const size_t | kDefaultCapacity = 256 |
Private Member Functions | |
GenericStringBuffer (const GenericStringBuffer &) | |
GenericStringBuffer & | operator= (const GenericStringBuffer &) |
Represents an in-memory output stream.
Encoding | Encoding of the stream. |
Allocator | type for allocating memory buffer. |
typedef Encoding::Ch GenericStringBuffer< Encoding, Allocator >::Ch |
Definition at line 44 of file stringbuffer.h.
|
inline |
Definition at line 46 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 74 of file stringbuffer.h.
|
inline |
Definition at line 70 of file stringbuffer.h.
|
inline |
Get the length of string in Ch in the string buffer.
Definition at line 119 of file stringbuffer.h.
|
inline |
Get the size of string in bytes in the string buffer.
Definition at line 113 of file stringbuffer.h.
|
inline |
Definition at line 103 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 98 of file stringbuffer.h.
|
inline |
Definition at line 90 of file stringbuffer.h.
|
inline |
Definition at line 94 of file stringbuffer.h.
|
inline |
Definition at line 62 of file stringbuffer.h.
|
inline |
Definition at line 66 of file stringbuffer.h.
|
inline |
Definition at line 86 of file stringbuffer.h.
|
inline |
Definition at line 78 of file stringbuffer.h.
|
static |
Definition at line 124 of file stringbuffer.h.
|
mutable |
Definition at line 125 of file stringbuffer.h.