SearchPattern.match

Search for a complete match of the pattern within the data

@param data The data in which to search for. The data may be arbitrary binary data, but the pattern will always be {@link StandardCharsets#US_ASCII} encoded. @param offset The offset within the data to start the search @param length The length of the data to search @return The index within the data array at which the first instance of the pattern or -1 if not found

class SearchPattern
int
match
(
byte[] data
,
int offset
,
int length
)

Meta