JSONTokenizer.releaseParsed

Release all elements that have been parsed completely. The return value is the number of elements that were released. Note that this can be done at any point, it doesn't matter if the parser is partway through an object, the rest of that object can still be parsed.

The goal is to free up buffer space for more incoming data. It is better to call this function than release directly if you just want to free up parsed data.

Note that any string elements that refer to the buffer are invalidated, since the buffer space will be gone.

struct JSONTokenizer(Chain, bool replaceEscapes)
size_t
releaseParsed
()

Return Value

Type: size_t

The number of elements that were released.

Meta