• Home
  • Raw
  • Download

Lines Matching refs:is

3 In RapidJSON, `rapidjson::Stream` is a concept for reading/writing JSON. Here we first show how to …
13 `StringStream` is the most basic input stream. It represents a complete, read-only JSON stored in m…
28 Since this is very common usage, `Document::Parse(const char*)` is provided to do exactly the same …
37 Note that, `StringStream` is a typedef of `GenericStringStream<UTF8<> >`, user may use another enco…
41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. …
53 When the buffer is full, it will increases the capacity automatically. The default capacity is 256 …
62 Similarly, `StringBuffer` is a typedef of `GenericStringBuffer<UTF8<> >`.
68 However, if the JSON is big, or memory is limited, you can use `FileReadStream`. It only read a par…
83 FileReadStream is(fp, readBuffer, sizeof(readBuffer));
86 d.ParseStream(is);
91 …fferent from string streams, `FileReadStream` is byte stream. It does not handle encodings. If the…
97 `FileWriteStream` is buffered output stream. Its usage is very similar to `FileReadStream`.
128 …n.wikipedia.org/wiki/Byte_order_mark). When reading from a byte stream, it is needed to detect or …
130is known in compile-time, you may use `EncodedInputStream` and `EncodedOutputStream`. If the strea…
136 …arameters. The first one is a `Encoding` class, such as `UTF8`, `UTF16LE`, defined in `rapidjson/e…
153 Document d; // Document is GenericDocument<UTF8<> >
161 `EncodedOutputStream` is similar but it has a `bool putBOM` parameter in the constructor, controlli…
168 Document d; // Document is GenericDocument<UTF8<> >
187 …ncoding. `AutoUTFInputStream` will detection encoding by BOM first. If BOM is unavailable, it will…
206 Document d; // Document is GenericDocument<UTF8<> >
214 You can obtain the type of UTF via `UTFType GetType()`. And check whether a BOM is found by `HasBOM…
218 …ng for output during runtime, we can use `AutoUTFOutputStream`. This class is not automatic *per s…
235 `AutoUTFInputStream` and `AutoUTFOutputStream` is more convenient than `EncodedInputStream` and `En…
241 …ss containing all required interface can be a stream. The Stream interface is defined in comments …
276 …eams do not implement them. However, if the interface is not needed for a particular stream, it is
280 The following example is a wrapper of `std::istream`, which only implements 3 functions.
287 IStreamWrapper(std::istream& is) : is_(is) {
320 IStreamWrapper is(ss);
323 d.ParseStream(is);
330 The following example is a wrapper of `std::istream`, which only implements 2 functions.
374 …reduce the memory required during JSON parsing and generation, if the JSON is stored in file syste…