Skip to content

Convert ASCII to Binary without reading everything into memory#17

Open
kraigher wants to merge 1 commit intohmeyer:mainfrom
kraigher:stream-stl
Open

Convert ASCII to Binary without reading everything into memory#17
kraigher wants to merge 1 commit intohmeyer:mainfrom
kraigher:stream-stl

Conversation

@kraigher
Copy link

@kraigher kraigher commented Dec 3, 2022

  • Adds try_stream_stl that takes iterator without triangle count
  • Adds convert_ascii_to_binary

- Adds try_stream_stl that takes iterator without triangle count
- Adds convert_ascii_to_binary
@kraigher
Copy link
Author

kraigher commented Dec 6, 2022

@hmeyer what do you think about this PR? Is it something you think belongs in the project?

where
W: ::std::io::Write + std::io::Seek,
T: std::borrow::Borrow<Triangle>,
I: ::std::iter::Iterator<Item = Result<T>>
Copy link
Owner

Choose a reason for hiding this comment

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

I think we could make this an ExactSizeIterator and avoid seeking back to the header, no?

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