public static List<Range> splitRanges(byte[] source, byte[] separator) {
        return splitRanges(source, separator, -1);
    }
Returns a list of ranges identifying [start, end) -- closed, open -- positions within the
source byte array that would be split using the separator byte array.
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/ByteUtil.java