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

Padding in Piecewise mode #402

Open
helpquick opened this issue Jun 11, 2021 · 0 comments
Open

Padding in Piecewise mode #402

helpquick opened this issue Jun 11, 2021 · 0 comments

Comments

@helpquick
Copy link

My coding skills are not up to this level, so would appreciate some pointers of how to achieve this.

I would like to have the option of padding smaller blocks / files to the piecewise block size.

e.g. if I want to calculate the hash of all files with a piecewise block size of 4K, I’d like a 7K file to be padded to 8K so that the last block is calculated based on 4K block size, padded with NULLs (zero). A 1 byte file would also be padded with NULLs to 4K block size for calculating hash.

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

1 participant