-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Efficiently read part of a file by seek offsets #107
Comments
Can you tell more about the use case (rather than the implementation) aside from "would be nice"? |
Sure, I'm imagining a program that has to read many large files at predictable locations. For instance, media & archive headers. AFAIK, using That said, I've only done this sort of thing in C, so apologies if it's inaccurate or out of scope. |
I'll keep this issue open to see if more people are interested. "lazily" might not be an accurate description: you want to read some specific segment from a file, without reading all of the file into memory, right? |
It would be nice to read a slice of a file, based on the start & end char indices.
chatgpt attempt, seems to work:
The text was updated successfully, but these errors were encountered: