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