Being more specific regarding the padding. (#1228)
* Being more specific regarding the padding. * Even more precise.
This commit is contained in:
parent
c85b6682e0
commit
001be23258
|
@ -108,7 +108,7 @@ SIMDJSON_PADDING bytes at the end) and calling `parse()`:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
dom::parser parser;
|
dom::parser parser;
|
||||||
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string
|
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string, the _padded suffix creates a simdjson::padded_string instance
|
||||||
```
|
```
|
||||||
|
|
||||||
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.
|
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.
|
||||||
|
|
|
@ -89,7 +89,7 @@ SIMDJSON_PADDING bytes at the end) and calling `parse()`:
|
||||||
|
|
||||||
```
|
```
|
||||||
dom::parser parser;
|
dom::parser parser;
|
||||||
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string
|
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string, the _padded suffix creates a simdjson::padded_string instance
|
||||||
```
|
```
|
||||||
|
|
||||||
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.
|
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.
|
||||||
|
|
Loading…
Reference in New Issue