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 47 of file stringbuffer.h.
|
inline |
Definition at line 49 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 66 of file stringbuffer.h.
|
inline |
Definition at line 64 of file stringbuffer.h.
|
inline |
Get the length of string in Ch in the string buffer.
Definition at line 91 of file stringbuffer.h.
|
inline |
Get the size of string in bytes in the string buffer.
Definition at line 88 of file stringbuffer.h.
|
inline |
Definition at line 79 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 77 of file stringbuffer.h.
|
inline |
Definition at line 75 of file stringbuffer.h.
|
inline |
Definition at line 76 of file stringbuffer.h.
|
inline |
Definition at line 62 of file stringbuffer.h.
|
inline |
Definition at line 63 of file stringbuffer.h.
|
inline |
Definition at line 74 of file stringbuffer.h.
|
inline |
Definition at line 67 of file stringbuffer.h.
|
static |
Definition at line 93 of file stringbuffer.h.
|
mutable |
Definition at line 94 of file stringbuffer.h.