docs: private void setCapacity(int len, boolean keepData) {
          if (bytes == null || bytes.length < len) {
              byte[] newBytes = new byte[len];
              if (bytes != null && keepData) {
                  System.arraycopy(bytes, 0, newBytes, 0, length);
              }
              bytes = newBytes;
          }
      }