MCPcopy Create free account
hub / github.com/Tencent/rapidjson / MemoryStream

Function MemoryStream

include/rapidjson/memorystream.h:43–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 typedef char Ch; // byte
42
43 MemoryStream(const Ch *src, size_t size) : src_(src), begin_(src), end_(src + size), size_(size) {}
44
45 Ch Peek() const { return RAPIDJSON_UNLIKELY(src_ == end_) ? '\0' : *src_; }
46 Ch Take() { return RAPIDJSON_UNLIKELY(src_ == end_) ? '\0' : *src_++; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected