1 #ifndef RAPIDJSON_GENERICWRITESTREAM_H_
2 #define RAPIDJSON_GENERICWRITESTREAM_H_
25 void PutN(
char c,
size_t n) {
26 for (
size_t i = 0; i < n; ++i) {
36 return (
int)os_.tellp();
50 inline void PutN(GenericWriteStream& stream,
char c,
size_t n) {
56 #endif // RAPIDJSON_GENERICWRITESTREAM_H_
Wrapper of std::ostream for output.
Definition: genericwritestream.h:10
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:146
void PutN(FileWriteStream &stream, char c, size_t n)
Implement specialized version of PutN() with memset() for better performance.
Definition: filewritestream.h:71
common definitions and configuration
GenericWriteStream(std::ostream &os)
Constructor.
Definition: genericwritestream.h:18
char Ch
Character type. Only support char.
Definition: genericwritestream.h:12