code: public void set(int index, int count, boolean value)
      {
          for (int ii=0;ii<count;ii++)
          {
              set(ii+index, value);
          }
      }
docs: Set count of bits starting from index to value
  @param index
  @param count
  @param value