Go to the documentation of this file.Go to the SVN repository for this file.
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_); }
56 return Tell() + 4 <= size_ ? src_ : 0;
#define RAPIDJSON_UNLIKELY(x)
Compiler branching hint for expression with low probability to be true.
#define RAPIDJSON_ASSERT(x)
Assertion.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
const struct ncbi::grid::netcache::search::fields::SIZE size
Represents an in-memory input byte stream.
const Ch * begin_
Original head of the string.
const Ch * end_
End of stream.
MemoryStream(const Ch *src, size_t size)
size_t size_
Size of the stream.
const Ch * src_
Current read position.