findBestMatch

private fnauto findBestMatch(const(ubyte)[] src, size_t pos, ref LzoHashTable hashTab, size_t maxOff)

Find the best match at the current position.

Parameters

srcSource data.
posCurrent position.
hashTabHash table for match finding.
maxOffMaximum backward offset.

Returns

Tuple of (offset, length) where offset is distance back, or (0, 0) if no match.