Skip to content

Conversation

@tgregg
Copy link
Contributor

@tgregg tgregg commented Apr 12, 2024

Description of changes:

Employs the exact same technique from #368. The code is almost identical in both places; this PR does not aim to address the existing issue of duplication, which would require some refactoring. The fix from #368 affects the text writer, while this PR affects the binary writer.

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

@@ -87,90 +87,124 @@ public final void writeValue(final IonReader reader) throws IOException

public final void writeValueRecursive(final IonReader reader) throws IOException
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps it would be good to add a comment saying that it does a depth-first (recursion-like) traversal of the all values on the IonReader, but the method is not actually implemented using recursion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@tgregg tgregg force-pushed the abstractionwriter-writevalues-iterative branch from 209398b to 5367d12 Compare April 12, 2024 23:31
@tgregg tgregg merged commit 146c2e4 into master Apr 12, 2024
@tgregg tgregg deleted the abstractionwriter-writevalues-iterative branch April 12, 2024 23:49
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.

2 participants