public function reverse() : void
    {
        $newBits = new SplFixedArray(count($this->bits));

        for ($i = 0; $i < $this->size; ++$i) {
            if ($this->get($this->size - $i - 1)) {
                $newBits[$i >> 5] = $newBits[$i >> 5] | (1 << ($i & 0x1f));
            }
        }

        $this->bits = $newBits;
    }
public function reverse() : void
    {
        $newBits = new SplFixedArray(count($this->bits));

        for ($i = 0; $i < $this->size; ++$i) {
            if ($this->get($this->size - $i - 1)) {
                $newBits[$i >> 5] = $newBits[$i >> 5] | (1 << ($i & 0x1f));
            }
        }

        $this->bits = $newBits;
    }
public function reverse ( ) : void { $ newBits = new SplFixedArray ( count ( $ this -> bits ) ) ; for ( $ i = 0 ; $ i < $ this -> size ; ++ $ i ) { if ( $ this -> get ( $ this -> size - $ i - 1 ) ) { $ newBits [ $ i >> 5 ] = $ newBits [ $ i >> 5 ] | ( 1 << ( $ i & 0x1f ) ) ; } } $ this -> bits = $ newBits ; }
Reverses the array.
Reverses the array .