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

[REQ] Provide an fseek analogue #1

Open
dwbuiten opened this issue Apr 24, 2016 · 1 comment
Open

[REQ] Provide an fseek analogue #1

dwbuiten opened this issue Apr 24, 2016 · 1 comment

Comments

@dwbuiten
Copy link

dwbuiten commented Apr 24, 2016

I'm not sure if this is out of scope for fcurl or not, but I figured it was worth asking.

Is there any plan to provide an fseek analogue, providing range request support, perhaps? (e.g. fseek to an offset N and read X bytes yields a N to N+X range request). It may be too compilcated to be worth in in this wrapper.

This would also allow fcurl to be registered with fopencookie or funopen, or various libraries which take such callbacks.

Hopefully that made some semblance of sense.

Also apologies if a GitHub issue is not the appropriate place to put this; It wasn't clear from the README if there was a separate mailing list or bug tracker.

bagder added a commit that referenced this issue Apr 24, 2016
Suggested-by: Derek Buitenhuis
Discussed-in: #1
@bagder
Copy link
Member

bagder commented Apr 24, 2016

Good question, thanks! I think an fseek equivalent will be really useful and almost required to provide a good "emulation" for the f family of functions. It could possibly be a bit hard to make it work in some situations but we should at least make a best effort.

I think the github issues is a sensible place to take these things, at least to start with. There's no dedicated mailing list or anything for fcurl (yet).

I added a few more functions to the README so they won't be forgotten.

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

2 participants