15 #ifndef RAPIDJSON_ISTREAMWRAPPER_H_ 16 #define RAPIDJSON_ISTREAMWRAPPER_H_ 23 RAPIDJSON_DIAG_OFF(padded)
28 RAPIDJSON_DIAG_OFF(4351)
49 template <
typename StreamType>
52 typedef typename StreamType::char_type
Ch;
56 typename StreamType::int_type
c =
stream_.peek();
61 typename StreamType::int_type
c =
stream_.get();
64 return static_cast<Ch>(
c);
82 bool hasError =
false;
83 for (i = 0; i < 4; ++i) {
84 typename StreamType::int_type
c =
stream_.get();
85 if (
c == StreamType::traits_type::eof()) {
92 for (--i; i >= 0; --i)
109 #if defined(__clang__) || defined(_MSC_VER) 115 #endif // RAPIDJSON_ISTREAMWRAPPER_H_ void Put(Ch)
Definition: istreamwrapper.h:74
#define RAPIDJSON_LIKELY(x)
Compiler branching hint for expression with high probability to be true.
Definition: rapidjson.h:455
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:119
const GLubyte * c
Definition: glext.h:9812
Ch * PutBegin()
Definition: istreamwrapper.h:73
Wrapper of std::basic_istream into RapidJSON's Stream concept.
Definition: istreamwrapper.h:50
StreamType::char_type Ch
Definition: istreamwrapper.h:52
size_t count_
Number of characters read. Note:
Definition: istreamwrapper.h:102
BasicIStreamWrapper & operator=(const BasicIStreamWrapper &)
size_t PutEnd(Ch *)
Definition: istreamwrapper.h:76
Ch Take()
Definition: istreamwrapper.h:60
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:402
BasicIStreamWrapper< std::wistream > WIStreamWrapper
Definition: istreamwrapper.h:107
const Ch * Peek4() const
Definition: istreamwrapper.h:79
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:116
GLuint GLuint stream
Definition: glext.h:8189
StreamType & stream_
Definition: istreamwrapper.h:101
void Flush()
Definition: istreamwrapper.h:75
size_t Tell() const
Definition: istreamwrapper.h:71
Ch Peek() const
Definition: istreamwrapper.h:55
BasicIStreamWrapper(StreamType &stream)
Definition: istreamwrapper.h:53
BasicIStreamWrapper< std::istream > IStreamWrapper
Definition: istreamwrapper.h:106
Ch peekBuffer_[4]
Definition: istreamwrapper.h:103