docs: public void setLength(final int len) {
          if (len < 0 || len > this.array.length) {
              throw new IndexOutOfBoundsException("len: "+len+" < 0 or > buffer len: "+this.array.length);
          }
          this.len = len;
      }