SearchPattern.startsWith

Search for a possibly partial match of the pattern at the start 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 @param matched The length of the partial pattern already matched @return the length of the partial pattern matched and 0 for no match.

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

Meta