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

Add 1.1 binary reader support for length-prefixed Lists & S-Expressions #769

Merged

Conversation

nirosys
Copy link
Contributor

@nirosys nirosys commented May 15, 2024

Issue #, if available: #664

Description of changes:
This PR adds length-prefixed Lists and S-Expressions to the 1.1 raw binary reader.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/// If it succeeds, marks the `DataSource` as ready to advance by the 'n' bytes
/// that were consumed.
/// If it does not succeed, the `DataSource` remains unchanged.
pub(crate) fn try_parse_next<F: Fn(Self) -> IonResult<Option<LazyRawBinaryValue_1_1<'a>>>>(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method was actually broken with the removal of bytes_to_skip, but luckily nothing else used it. I noticed as I was working through adding similar bytes_to_skip functionality for sequences.

@nirosys nirosys marked this pull request as ready for review May 15, 2024 10:52
Copy link
Contributor

@zslayton zslayton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nirosys nirosys force-pushed the rgiliam/1_1_binary_reader_prefixed_sequences branch from 8c59dac to 7b4e3c7 Compare May 21, 2024 05:03
@nirosys nirosys merged commit 8d7d7c1 into amazon-ion:main May 21, 2024
25 of 26 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants