Create an ArrayAccumulator
the CBOR tokeniser
the base JSON pointer to accumulate from
the offset of the start token
the index of the next token
The buffer position of the next token
The buffer position of the start token
The CBOR tokeniser
Get the number of accumulated tokens
the number of accumulated tokens
Add tokens to the accumulator
the next offset up to which to add tokens
false
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 array values