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

Use streaming construction to hash files #61

Open
cmuratori opened this issue Jun 25, 2019 · 2 comments
Open

Use streaming construction to hash files #61

cmuratori opened this issue Jun 25, 2019 · 2 comments

Comments

@cmuratori
Copy link
Owner

To allow for hashing files larger than available memory, and to prevent possible incompatibilities with ftell on 32-bit builds, I'd like to stop reading files into memory wholesale and start using a fixed-size buffer that gets repeatedly fread() and handed to Meow as a chunk.

- Casey

@NoHatCoder
Copy link

I'd say that the point of an example program is to show how all the features of a library is used, we should demo both chunked and single call, and also custom seeds. It would also be good if the example program would self-check by comparing the generated hashes to known values.

Am I by the way the only person who don't really get example programs that take command line arguments? I just want some code that I can copy-paste for a starting point, and mess around with to see how it is working, command line stuff just slows down my modify-test cycle.

@cmuratori
Copy link
Owner Author

cmuratori commented Jun 25, 2019 via email

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