类 KMPMatch

    • 构造器详细资料

      • KMPMatch

        public KMPMatch​(byte[] match)
        Constructor
        参数:
        match - search for this byte pattern
    • 方法详细资料

      • getMatchLength

        public int getMatchLength()
      • indexOf

        public int indexOf​(byte[] data,
                           int start,
                           int max)
        Finds the first occurrence of match in data.
        参数:
        data - search in this byte block
        start - start at data[start]
        max - end at data[start+max]
        返回:
        index into data[] of first match, else -1 if not found.