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 43 of file stringbuffer.h.
|
inline |
Definition at line 45 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 60 of file stringbuffer.h.
|
inline |
Definition at line 58 of file stringbuffer.h.
|
inline |
Get the length of string in Ch in the string buffer.
Definition at line 85 of file stringbuffer.h.
|
inline |
Get the size of string in bytes in the string buffer.
Definition at line 82 of file stringbuffer.h.
|
inline |
Definition at line 73 of file stringbuffer.h.
|
private |
|
inline |
Definition at line 71 of file stringbuffer.h.
|
inline |
Definition at line 69 of file stringbuffer.h.
|
inline |
Definition at line 70 of file stringbuffer.h.
|
inline |
Definition at line 56 of file stringbuffer.h.
|
inline |
Definition at line 57 of file stringbuffer.h.
|
inline |
Definition at line 68 of file stringbuffer.h.
|
inline |
Definition at line 61 of file stringbuffer.h.
|
static |
Definition at line 87 of file stringbuffer.h.
|
mutable |
Definition at line 88 of file stringbuffer.h.