Create an ObjectAccumulator
the CBOR tokeniser
the base JSON pointer to accumulate from
the offset of the start token
the index of the next token
An array of object keys
The buffer position of the next token
Flag indicating that there is a pending key
The pending object key
The buffer position of the start token
The CBOR tokeniser
Get the number of accumulated tokens
the number of accumulated tokens
Create a new ArrayAccumulator from the current token position
the offset of the start token
the index of the next token
a new array accumulator
Create a new ObjectAccumulator from the current token position
the offset of the start token
the index of the next token
a new object accumulator
Check if the offset splits the accumulator content
the offset to check
true if the accumulator has encountered any tokens and
the offset is greater than the starting offset
Increase the next offset without adding tokens
Skip one token
Signal the end of a split structure
Take all tokens. Passes all accumulated tokens to the abstract take method.
the consumer that will receive the tokens
Convert the accumulator to a string
a string representation of the accumulator
Get the total number of tokens encountered
the total number of tokens encountered
Copyright © 2025 DiffusionData Ltd. All Rights Reserved.
An implementation of the AbstractAccumulator that accumulates object values