findMatch

private fnauto findMatch(const(ubyte)[] data, size_t pos, ref size_t[SNAPPY_HASH_SIZE] hashTable)

Find a match at the current position using the hash table.

Parameters

dataFull input data.
posCurrent position in data.
hashTableHash table mapping hash -> position.

Returns

Tuple of (offset, length) or (0, 0) if no match found.