bytebuffer.js
bytebuffer.js copied to clipboard
Comparing two ByteBuffers i.e. equal method
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.
Seems like a good addition, yeah. Something like ByteBuffer.compare(buf1, buf2)
, maybe.
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.