code: public BitArray resize(long size) {
      bytes.resize(Math.max(size / 8 + 8, 8));
      this.size = size;
      return this;
    }
docs: Resizes the bit array to a new count.
  
  @param size The new count.
  @return The resized bit array.