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

Is there a way to ask a Decoder if the next token is a Map? #12

Open
dsyer opened this issue Jul 12, 2022 · 0 comments
Open

Is there a way to ask a Decoder if the next token is a Map? #12

dsyer opened this issue Jul 12, 2022 · 0 comments

Comments

@dsyer
Copy link

dsyer commented Jul 12, 2022

I have a data structure where there is a field that might be a map or a string. I don't see a way to peek into the decoder and ask it if readMapSize() is going to fail. Since there is no support for try/catch in AS, and the reader field in Decoder is private, that means I'm stuck. Unless I'm missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant