Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GenericStringBuffer< Encoding, Allocator > Struct Template Reference

Represents an in-memory output stream. More...

`#include <stringbuffer.h>`

Inheritance diagram for GenericStringBuffer< Encoding, Allocator >:

## Public Types
typedef Encoding::Ch | Ch

## Public Member Functions
| GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity)
void | Put (Ch c)
void | Flush ()
void | Clear ()
const Ch * | GetString () const
size_t | GetSize () const

## Public Attributes
internal::Stack< Allocator > | stack_

## Static Public Attributes
static const size_t | kDefaultCapacity = 256

## Detailed Description

### template<typename Encoding, typename Allocator = CrtAllocator>
struct rapidjson::GenericStringBuffer< Encoding, Allocator >

Represents an in-memory output stream.

Template Parameters

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

## Member Typedef Documentation

typedef Encoding::Ch Ch

## Constructor & Destructor Documentation

GenericStringBuffer | ( | Allocator * | allocator = `0`,
|  | size_t | capacity = `kDefaultCapacity`
| ) |  |
| inline

## Member Function Documentation

void Clear | ( |  | ) |
| inline

void Flush | ( |  | ) |
| inline

size_t GetSize | ( |  | ) | const
| inline

const Ch* GetString | ( |  | ) | const
| inline

void Put | ( | Ch | c | ) |
| inline

## Member Data Documentation

const size_t kDefaultCapacity = 256
| static

internal::Stack<Allocator> stack_
| mutable

The documentation for this struct was generated from the following file:

- persistence/rapidjson/include/rapidjson/stringbuffer.h