Class KMPMatch

    • Constructor Detail

      • KMPMatch

        public KMPMatch​(byte[] match)
        Constructor
        Parameters:
        match - search for this byte pattern
    • Method Detail

      • getMatchLength

        public int getMatchLength()
      • indexOf

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