17 #ifndef RAPIDJSON_STREAM_H_ 18 #define RAPIDJSON_STREAM_H_ 72 template<
typename Stream>
83 template<
typename Stream>
90 template<
typename Stream>
96 template<
typename Stream,
typename Ch>
99 for (
size_t i = 0; i <
n; i++)
109 template <
typename Encoding>
111 typedef typename Encoding::Ch
Ch;
128 template <
typename Encoding>
143 template <
typename Encoding>
145 typedef typename Encoding::Ch
Ch;
169 template <
typename Encoding>
179 #endif // RAPIDJSON_STREAM_H_ void Flush()
Definition: stream.h:159
Ch Peek()
Definition: stream.h:150
const Ch * head_
Original head of the string.
Definition: stream.h:125
GenericInsituStringStream(Ch *src)
Definition: stream.h:147
common definitions and configuration
Ch Peek() const
Definition: stream.h:115
void PutUnsafe(Stream &stream, typename Stream::Ch c)
Write character to a stream, presuming buffer is reserved.
Definition: stream.h:91
void Flush()
Definition: stream.h:121
A read-write string stream.
Definition: fwd.h:52
void PutN(Stream &stream, Ch c, size_t n)
Put N copies of a character to a stream.
Definition: stream.h:97
const Ch * src_
Current read position.
Definition: stream.h:124
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void Pop(size_t count)
Definition: stream.h:162
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:119
Read-only string stream.
Definition: fwd.h:47
const GLubyte * c
Definition: glext.h:9812
GLuint GLuint GLsizei count
Definition: glext.h:6292
GenericInsituStringStream< UTF8<> > InsituStringStream
Insitu string stream with UTF8 encoding.
Definition: stream.h:175
size_t Tell() const
Definition: stream.h:117
GenericStringStream< UTF8<> > StringStream
String stream with UTF8 encoding.
Definition: stream.h:134
Ch * PutBegin()
Definition: stream.h:119
Ch Take()
Definition: stream.h:151
size_t PutEnd(Ch *)
Definition: stream.h:122
Ch * PutBegin()
Definition: stream.h:157
GenericStringStream(const Ch *src)
Definition: stream.h:113
Ch * dst_
Definition: stream.h:165
Ch * Push(size_t count)
Definition: stream.h:161
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:402
GLenum src
Definition: glext.h:6980
size_t PutEnd(Ch *begin)
Definition: stream.h:158
void Put(Ch c)
Definition: stream.h:155
Ch Take()
Definition: stream.h:116
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:116
GLuint GLuint stream
Definition: glext.h:8189
Ch * src_
Definition: stream.h:164
void Put(Ch)
Definition: stream.h:120
void PutReserve(Stream &stream, size_t count)
Reserve n characters for writing to a stream.
Definition: stream.h:84
Ch * head_
Definition: stream.h:166
Encoding::Ch Ch
Definition: stream.h:111
byte Encoding
Definition: jsonsax_full.c:106
Provides additional information for stream.
Definition: stream.h:73
Encoding::Ch Ch
Definition: stream.h:145
GLdouble n
Definition: glext.h:8396
size_t Tell()
Definition: stream.h:152