public static int indexOf(byte[] bytes, byte[] search) {
        if (bytes == null || search == null) {
            return -1;
        }

        return indexOf(bytes, 0, bytes.length, search, 0, search.length, false);
    }
Returns the index of the first occurrence of the specified {@code search}
array within the given {@code bytes} array. Same as
{@code indexOf(bytes, 0, bytes.length, search, 0, search.length, false)}.

@param bytes  the byte array in which to search for the specified
              {@code search} array.
@param search the byte array to search for within the {@code bytes} array.
@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