mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2024-12-22 16:42:46 +01:00
16 lines
540 B
C#
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);
|
|
}
|
|
}
|