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

Expose API similar to for_each_entries but without callback #42

Open
judemille opened this issue Nov 16, 2023 · 2 comments
Open

Expose API similar to for_each_entries but without callback #42

judemille opened this issue Nov 16, 2023 · 2 comments

Comments

@judemille
Copy link

For my use-case, I need to get a stream to a file within the archive, without deferring to a callback. I don't mind this action blocking all other use of the archive until that file handle is closed. The main issue is just that I cannot work with a callback.

@dyz1990
Copy link
Owner

dyz1990 commented Nov 21, 2023

@judemille Can you provide an example of using this API?

@judemille
Copy link
Author

judemille commented Nov 21, 2023

Something along the lines of

let mut file: FileReader = archive.get_file_at_path("file.dsf");
// FileReader is Read + Seek.

would be ideal.

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