SearchPattern.endsWith

Search for a partial match of the pattern at the end of 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 length of the partial pattern matched and 0 for no match.

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

Meta