Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a method to deserialize and discard one object #3

Open
joshtriplett opened this issue Aug 24, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@joshtriplett
Copy link
Contributor

For resilient parsing of CBOR streams that may contain unknown objects, I'd love to have a Deserializer method that parses and discards one CBOR object, including any contained objects. For instance, if the next object is a definite array, it'll parse and discard len objects; if the next object is an indefinite map, it'll parse and discard pairs of objects until it parses and discards a Break. This makes it easy to, for instance, discard the value associated with an unknown key in a map, allowing for extensible objects.

@NicolasDP NicolasDP added the enhancement New feature or request label Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants