public static int indexOf(byte[] bytes, int bpos, int blen, byte[] search, int spos, int slen) {
        return indexOf(bytes, bpos, blen, search, spos, slen, false);
    }
Returns the index of the first occurrence of the specified {@code search}
array within the given {@code bytes} array, considering specified positions
and lengths for both arrays.

@param bytes  the byte array in which to search for the specified
              {@code search} array.
@param bpos   the starting position in the {@code bytes} array from which to
              search
@param blen   the number of bytes in the {@code bytes} array to consider for
              searching
@param search the byte array to search for within the {@code bytes} array.
@param spos   the starting position in the {@code search} array to consider
              for matching
@param slen   the number of bytes in the {@code search} array to consider for
              matching
@return the index of the first occurrence of the search array within the
        bytes array, or -1 if the search array is not found
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseByteUtils.java