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

When given a ReaderAt, support returning a SectionReader #10

Open
charles-dyfis-net opened this issue Feb 2, 2021 · 0 comments
Open

Comments

@charles-dyfis-net
Copy link

Returning []bytes means that tools using this library need to have enough memory available to store the data they're reading, even if the algorithms they're applying to that data would work just as well on a stream with constant memory requirements.

It would be helpful to be able to retrieve not just a file's contents, but a SectionReader that would let those contents be read directly from the underlying storage at a later time, when a seekable backing store is available.


I'm willing to do the work to implement this myself; this issue is provided as a vehicle for discussion, to ensure that the concept is acceptable before I go writing code.

charles-dyfis-net added a commit to charles-dyfis-net/ar that referenced this issue Feb 2, 2021
charles-dyfis-net added a commit to charles-dyfis-net/ar that referenced this issue Feb 2, 2021
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