src/BitMaskGenerator.php
protected function generateFirstMask() {
    $this->mask = array_fill(0, $this->length, 0);
    for ($i = 0; $i < $this->positivesAmount; $i++) {
      $this->mask[$this->length - $i - 1] = 1;
    }
  }
protected function generateFirstMask() {
    $this->mask = array_fill(0, $this->length, 0);
    for ($i = 0; $i < $this->positivesAmount; $i++) {
      $this->mask[$this->length - $i - 1] = 1;
    }
  }
protected function generateFirstMask ( ) { $ this -> mask = array_fill ( 0 , $ this -> length , 0 ) ; for ( $ i = 0 ; $ i < $ this -> positivesAmount ; $ i ++ ) { $ this -> mask [ $ this -> length - $ i - 1 ] = 1 ; } }
Generates the very first mask.
Generates the very first mask .