Create a LastResult consumer
a pointer map that will be filled with any split structures found in the matching data
The last JSON pointer found
The number of bytes of of the last piece of data in the buffer
The starting position of the last piece of data in the buffer
Any split structures found in the matching data
Accept a JSON pointer found
the JSON pointer
the starting position in the buffer
the number of bytes in the buffer
Pass the last pointer to the delegate consumer
the delegate consumer
Check if a last pointer has been found
true if accept has been called with a JSON pointer
Signal the end of a split structure
the JSON pointer
the number of tokens in the split structure
the starting position in the buffer
the number of bytes in the buffer
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
A consumer for the span parser that handles any match and only holds on to the last pointer