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.
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.