Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

Comparing two ByteBuffers i.e. equal method #92

Open

Description

@courteous

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.

Activity

  1. dcodeIO commented on May 25, 2018

    @dcodeIO
    Member

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

  2. courteous commented on May 25, 2018

    @courteous
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions