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
Support for Seek
trait
#218
Comments
Thanks for the report! I originally had |
Can you describe reasoning or link the discussion? I would like to read that.
Is there missing feature in compiler to do so? I've tried to modify slightly to require both Can it be done with the separate API for now, while the common one is not available? And deprecate it latter. |
`Archive::new` requires only `Read` for backward-compatibility, while `Archive::new_from_seek` can be used with readers that also implement `Seek`, to allow more efficient skipping over file contents.
In our project we have a use case where we need to read the metadata of a tar archive with large file entries (>10 GB). Adding support for I've added a PR with a proposal that adds support for readers that implement |
`Archive::entries_with_seek` can be used to get an iterator over entries for a reader that implements `Seek`.
`Archive::entries_with_seek` can be used to get an iterator over entries for a reader that implements `Seek`.
`Archive::entries_with_seek` can be used to get an iterator over entries for a reader that implements `Seek`.
As far as I understand,
Archive::skip
is usingread
to skip over file contents.Is it possible to require
Read + Seek
and useseek
to move through the input?The text was updated successfully, but these errors were encountered: