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

Add multiply and sum methods to Bytes class. #1

Open
mrniko opened this issue Jan 2, 2018 · 2 comments
Open

Add multiply and sum methods to Bytes class. #1

mrniko opened this issue Jan 2, 2018 · 2 comments

Comments

@mrniko
Copy link

mrniko commented Jan 2, 2018

Hi! Thanks for such cool lib!

Is it possible to implement Bytes.multiply and Bytes.sum methods?

@patrickfav
Copy link
Owner

Thanks I'll look into it :)

@patrickfav
Copy link
Owner

patrickfav commented Mar 16, 2018

So the problem with this feature is that it would just replicate the features of BigInteger so the the benefit of packing it to the lib is fairly small I guess. (you could easily convert to/from BigInteger)

I would be open to add it as a BytesTransformer (or so could you in your project), so if you're interested I'll encourage you to create a PR.

This would add a new inner class BytesTransformer and should probably support inPlace altering and should have signed/usinged mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants