public function appendBit(bool $bit) : void
    {
        $this->ensureCapacity($this->size + 1);

        if ($bit) {
            $this->bits[$this->size >> 5] = $this->bits[$this->size >> 5] | (1 << ($this->size & 0x1f));
        }

        ++$this->size;
    }
public function appendBit(bool $bit) : void
    {
        $this->ensureCapacity($this->size + 1);

        if ($bit) {
            $this->bits[$this->size >> 5] = $this->bits[$this->size >> 5] | (1 << ($this->size & 0x1f));
        }

        ++$this->size;
    }
public function appendBit ( bool $ bit ) : void { $ this -> ensureCapacity ( $ this -> size + 1 ) ; if ( $ bit ) { $ this -> bits [ $ this -> size >> 5 ] = $ this -> bits [ $ this -> size >> 5 ] | ( 1 << ( $ this -> size & 0x1f ) ) ; } ++ $ this -> size ; }
Appends a bit to the array.
Appends a bit to the array .