Torque2D Reference

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

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

Public Types | Public Member Functions | List of all members
EncodedOutputStream< Encoding, OutputByteStream > Class Template Reference

Output byte stream wrapper with statically bound encoding. More...

`#include <encodedstream.h>`

## Public Types
typedef Encoding::Ch | Ch

## Public Member Functions
| EncodedOutputStream (OutputByteStream &os, bool putBOM=true)
void | Put (Ch c)
void | Flush ()
Ch | Peek () const
Ch | Take ()
size_t | Tell () const
Ch * | PutBegin ()
size_t | PutEnd (Ch *)

## Detailed Description

### template<typename Encoding, typename OutputByteStream>
class rapidjson::EncodedOutputStream< Encoding, OutputByteStream >

Output byte stream wrapper with statically bound encoding.

Template Parameters

  Encoding | The interpretation of encoding of the stream. Either UTF8, UTF16LE, UTF16BE, UTF32LE, UTF32BE.
  InputByteStream | Type of input byte stream. For example, FileWriteStream.

## Member Typedef Documentation

typedef Encoding::Ch Ch

## Constructor & Destructor Documentation

EncodedOutputStream | ( | OutputByteStream & | os,
|  | bool | putBOM = `true`
| ) |  |
| inline

## Member Function Documentation

void Flush | ( |  | ) |
| inline

Ch Peek | ( |  | ) | const
| inline

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

Ch* PutBegin | ( |  | ) |
| inline

size_t PutEnd | ( | Ch * |  | ) |
| inline

Ch Take | ( |  | ) |
| inline

size_t Tell | ( |  | ) | const
| inline

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

- persistence/rapidjson/include/rapidjson/encodedstream.h