8e7d1a5f09
This creates a "document" class with only user-facing document state (no parser internals). - document: user-facing document state - document::iterator: iterator (equivalent of ParsedJsonIterator) - document::parser: parser state plus a "docked" document we parse into (equivalent of ParsedJson) Usage: ```c++ auto doc = simdjson::document::parse(buf, len); // less efficient but simplest ``` ```c++ simdjson::document::parser parser; // reusable parser parser.allocate_capacity(len); simdjson::document* doc = parser.parse(buf, len); // pointer to doc inside parser doc = parser.parse(buf2, len); // reuses all buffers and overwrites doc; more efficient ``` |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Fuzzing.md | ||
NullBuffer.h | ||
build_corpus.sh | ||
build_fuzzer_variants.sh | ||
build_like_ossfuzz.sh | ||
fuzz_dump.cpp | ||
fuzz_dump_raw_tape.cpp | ||
fuzz_minify.cpp | ||
fuzz_parser.cpp | ||
fuzz_print_json.cpp | ||
main.cpp | ||
measure_coverage.sh | ||
ossfuzz.sh |