15 #ifndef RAPIDJSON_FILEWRITESTREAM_H_
16 #define RAPIDJSON_FILEWRITESTREAM_H_
42 void PutN(
char c,
size_t n) {
91 #endif // RAPIDJSON_FILESTREAM_H_
size_t PutEnd(char *)
Definition: filewritestream.h:70
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:344
const size_t bufferSize
Definition: RASession.h:31
void PutN(char c, size_t n)
Definition: filewritestream.h:42
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:119
char Take()
Definition: filewritestream.h:67
void PutN(FileWriteStream &stream, char c, size_t n)
Implement specialized version of PutN() with memset() for better performance.
Definition: filewritestream.h:85
void Flush()
Definition: filewritestream.h:58
Wrapper of C file stream for input using fread().
Definition: filewritestream.h:27
char Ch
Character type. Only support char.
Definition: filewritestream.h:29
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:116
FileWriteStream & operator=(const FileWriteStream &)
void Put(char c)
Definition: filewritestream.h:35
char * current_
Definition: filewritestream.h:80
FileWriteStream(std::FILE *fp, char *buffer, size_t bufferSize)
Definition: filewritestream.h:31
char Peek() const
Definition: filewritestream.h:66
char * PutBegin()
Definition: filewritestream.h:69
char * bufferEnd_
Definition: filewritestream.h:79
char * buffer_
Definition: filewritestream.h:78
common definitions and configuration
size_t Tell() const
Definition: filewritestream.h:68
std::FILE * fp_
Definition: filewritestream.h:77