Versions in this module Expand all Collapse all v1 v1.4.1 Mar 1, 2023 Changes in this version + const SpanSize + func LengthToSpan(length int64) []byte + type BaseHasherFunc func() hash.Hash + type Conf struct + func NewConf(hasher BaseHasherFunc, segmentCount, capacity int) *Conf + type Hash interface + Capacity func() int + Hash func([]byte) ([]byte, error) + SetHeader func([]byte) + SetHeaderInt64 func(int64) + type Hasher struct + func (h *Hasher) BlockSize() int + func (h *Hasher) Capacity() int + func (h *Hasher) Hash(b []byte) ([]byte, error) + func (h *Hasher) Reset() + func (h *Hasher) SetHeader(span []byte) + func (h *Hasher) SetHeaderInt64(length int64) + func (h *Hasher) Size() int + func (h *Hasher) Sum(b []byte) []byte + func (h *Hasher) Write(b []byte) (int, error) + type Pool struct + func NewPool(c *Conf) *Pool + func (p *Pool) Get() *Hasher + func (p *Pool) Put(h *Hasher)