Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-188

Minimize usage of BitSet: create BitArray

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • General
    • None
    • Operating System: All
      Platform: All

    • 2749

    Description

      Java BitSet is not applicable to use in protocols without using util methods. Create simplified BitArray class with these features:

      • backing array type byte[]
      • fixed size (set in constructor)
      • BIG_ENDIAN
      • set(index, Boolean value) -> includes null check
      • toByteBuf(buffer) - writes the same amount of bytes as its size, regardless of how the backing byte array is filled (might be empty)
      • toByte()
      • valueOf(byte) and valueOf(byteArray)
      • content is unsigned only

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dkutenicsova Dana Kutenicsova
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: