countMatch
private fn
size_t countMatch(const(ubyte)[] src, size_t pos1, size_t pos2, size_t maxLen)Count the number of matching bytes starting at two positions.
Parameters
src | The input buffer to search within. |
pos1 | First position to compare from. |
pos2 | Second position to compare from. |
maxLen | Maximum number of bytes to compare. |
Returns
The number of consecutive matching bytes.