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

Question: How to use a BufReader with Deku #252

Closed
ciarant opened this issue Mar 12, 2022 · 2 comments
Closed

Question: How to use a BufReader with Deku #252

ciarant opened this issue Mar 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ciarant
Copy link

ciarant commented Mar 12, 2022

Hey there. I working on a tool to decode a proprietary legacy binary file format and am struggling to find an example of how I might be able to use a BufReader with Deku. What would allow me to not worry about buffering data myself while also avoiding loading the entire binary file into memory? Anyone got a pointers?

(I'm a newcomer to Rust so, apologies, this might be a dumb question)

Here's a code snippet (it's waaaay simpler than the format I have to deal with, but might help ¯_(ツ)_/¯)

@wcampbell0x2a
Copy link
Collaborator

@sharksforarms would this require something like #105?

I'd also like a solution to this use case.

@wcampbell0x2a wcampbell0x2a mentioned this issue Aug 3, 2023
8 tasks
@wcampbell0x2a wcampbell0x2a added the enhancement New feature or request label Sep 18, 2023
@wcampbell0x2a
Copy link
Collaborator

With #352 this "Just Works". Closing unless you have other questions for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants