Class BitVector


  • public final class BitVector
    extends java.lang.Object
    JAVAPORT: This should be combined with BitArray in the future, although that class is not yet dynamically resizeable. This implementation is reasonable but there is a lot of function calling in loops I'd like to get rid of.
    Since:
    5.0.2
    • Field Detail

      • sizeInBits

        private int sizeInBits
      • array

        private byte[] array
    • Constructor Detail

      • BitVector

        public BitVector()
    • Method Detail

      • at

        public int at​(int index)
      • size

        public int size()
      • sizeInBytes

        public int sizeInBytes()
      • appendBit

        public void appendBit​(int bit)
      • appendBits

        public void appendBits​(int value,
                               int numBits)
      • appendBitVector

        public void appendBitVector​(BitVector bits)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getArray

        public byte[] getArray()
      • appendByte

        private void appendByte​(int value)