docs: public int setBytes(final long pos, final byte[] bytes) throws SQLException {
      if (pos < 1) {
        throw ExceptionMapper.getSqlException("pos should be > 0, first position is 1.");
      }
  
      final int arrayPos = (int) pos - 1;
  
      if (length > arrayPos + bytes.length) {
  
        System.arraycopy(bytes, 0, data, offset + arrayPos, bytes.length);
  
      } else {
  
        byte[] newContent = new byte[arrayPos + bytes.length];
        if (Math.min(arrayPos, length) > 0) {
          System.arraycopy(data, this.offset, newContent, 0, Math.min(arrayPos, length));
        }
        System.arraycopy(bytes, 0, newContent, arrayPos, bytes.length);
        data = newContent;
        length = arrayPos + bytes.length;
        offset = 0;
  
      }
      return bytes.length;
    }