public class BoyerMoore
extends java.lang.Object
Constructor and Description |
---|
BoyerMoore(byte[] needle) |
Modifier and Type | Method and Description |
---|---|
int |
nextIndex(org.apache.pekko.util.ByteString haystack,
int offset)
Returns the index of the next occurrence of
needle in haystack that is >= offset . |
public int nextIndex(org.apache.pekko.util.ByteString haystack, int offset)
needle
in haystack
that is >= offset
.
If none is found a NotEnoughDataException
is thrown.haystack
- (undocumented)offset
- (undocumented)