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

Comparing two ByteBuffers i.e. equal method #92

Open
courteous opened this issue May 25, 2018 · 2 comments
Open

Comparing two ByteBuffers i.e. equal method #92

courteous opened this issue May 25, 2018 · 2 comments

Comments

@courteous
Copy link

courteous commented May 25, 2018

Hello would like to ask the following question: Is would it be possible to implement a method which is comparing 2 bytebuffer values on equality i.e. something like

bufVariable.equal(anotherBufferValue : ByteBuffer) : boolean

I have searched for such method but was not able to find it.

@dcodeIO
Copy link
Member

dcodeIO commented May 25, 2018

Seems like a good addition, yeah. Something like ByteBuffer.compare(buf1, buf2), maybe.

@courteous
Copy link
Author

well whatever does the comparison will be suitable as long as the each bit/byte equals the other one , taking into account that they are the same ENDIAN. Please let me know if you decide to do that. Many thanks in advanced.

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