public function appendBitArray(self $other) : void
    {
        $otherSize = $other->getSize();
        $this->ensureCapacity($this->size + $other->getSize());

        for ($i = 0; $i < $otherSize; ++$i) {
            $this->appendBit($other->get($i));
        }
    }
public function appendBitArray(self $other) : void
    {
        $otherSize = $other->getSize();
        $this->ensureCapacity($this->size + $other->getSize());

        for ($i = 0; $i < $otherSize; ++$i) {
            $this->appendBit($other->get($i));
        }
    }
public function appendBitArray ( self $ other ) : void { $ otherSize = $ other -> getSize ( ) ; $ this -> ensureCapacity ( $ this -> size + $ other -> getSize ( ) ) ; for ( $ i = 0 ; $ i < $ otherSize ; ++ $ i ) { $ this -> appendBit ( $ other -> get ( $ i ) ) ; } }
Appends another bit array to this array.
Appends another bit array to this array .