15 #ifndef RAPIDJSON_MEMORYSTREAM_H_ 16 #define RAPIDJSON_MEMORYSTREAM_H_ 22 RAPIDJSON_DIAG_OFF(unreachable-code)
23 RAPIDJSON_DIAG_OFF(missing-noreturn)
47 size_t Tell()
const {
return static_cast<size_t>(
src_ -
begin_); }
55 const Ch* Peek4()
const {
71 #endif // RAPIDJSON_MEMORYBUFFER_H_ const Ch * begin_
Original head of the string.
Definition: memorystream.h:60
const Ch * end_
End of stream.
Definition: memorystream.h:61
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:121
size_t size_
Size of the stream.
Definition: memorystream.h:62
const Ch * src_
Current read position.
Definition: memorystream.h:59
Represents an in-memory input byte stream.
Definition: memorystream.h:40
#define RAPIDJSON_UNLIKELY(x)
Compiler branching hint for expression with low probability to be true.
Definition: rapidjson.h:507
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:124
#define RAPIDJSON_ASSERT(x)
Assertion.
Definition: rapidjson.h:437