template <typename Encoding, typename Allocator = CrtAllocator>

class GenericStringBuffer

Defined at line 41 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

Represents an in-memory output stream.

Template Parameters

Encoding Encoding of the stream.
Allocator type for allocating memory buffer.

Public Members

internal::Stack<Allocator> stack_
static const size_t kDefaultCapacity

Public Methods

void GenericStringBuffer<Encoding, Allocator> (Allocator * allocator, size_t capacity)

Defined at line 45 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void GenericStringBuffer<Encoding, Allocator> (GenericStringBuffer<Encoding, Allocator> && rhs)

Defined at line 48 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

GenericStringBuffer<Encoding, Allocator> & operator= (GenericStringBuffer<Encoding, Allocator> && rhs)

Defined at line 49 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void Put (Ch c)

Defined at line 56 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void PutUnsafe (Ch c)

Defined at line 57 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void Flush ()

Defined at line 58 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void Clear ()

Defined at line 60 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void ShrinkToFit ()

Defined at line 61 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void Reserve (size_t count)

Defined at line 68 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

Ch * Push (size_t count)

Defined at line 69 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

Ch * PushUnsafe (size_t count)

Defined at line 70 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

void Pop (size_t count)

Defined at line 71 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

const Ch * GetString ()

Defined at line 73 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

size_t GetSize ()

Get the size of string in bytes in the string buffer.

Defined at line 82 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h

size_t GetLength ()

Get the length of string in Ch in the string buffer.

Defined at line 85 of file ../../third_party/rapidjson/include/rapidjson/stringbuffer.h