2020-10-16 07:06:27 +02:00
|
|
|
// Copyright 2014-2019 Ulrich Kunitz. All rights reserved.
|
2020-06-05 22:47:39 +02:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package hash provides rolling hashes.
|
|
|
|
|
|
|
|
Rolling hashes have to be used for maintaining the positions of n-byte
|
|
|
|
sequences in the dictionary buffer.
|
|
|
|
|
|
|
|
The package provides currently the Rabin-Karp rolling hash and a Cyclic
|
|
|
|
Polynomial hash. Both support the Hashes method to be used with an interface.
|
|
|
|
*/
|
|
|
|
package hash
|