1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-11-24 22:42:50 +01:00
Brotli-Builder/BrotliImpl/Combined/Hashers/IHasher.cs

16 lines
540 B
C#

namespace BrotliImpl.Combined.Hashers{
/// <summary>
/// Adapted from https://github.com/google/brotli/blob/master/c/enc/hash.h
/// </summary>
interface IHasher{
int StoreLookahead { get; }
int HashTypeLength { get; }
void Store(int ip);
void StoreRange(int ipStart, int ipEnd);
void StitchToPreviousBlock(int chunkLength, int ip);
HasherSearchResult FindLongestMatch(int ip, int maxLength, int maxDistance, int dictionaryStart, int lastDistance, int bestLenIn);
}
}