Versions in this module Expand all Collapse all v1 v1.8.14 Aug 22, 2018 v1.8.13 Jul 31, 2018 Changes in this version + type AsyncHasher struct + func (sw *AsyncHasher) SectionSize() int + func (sw *AsyncHasher) Sum(b []byte, length int, meta []byte) (s []byte) + func (sw *AsyncHasher) Write(i int, section []byte) type Hasher + func (h *Hasher) NewAsyncWriter(double bool) *AsyncHasher + type SectionWriter interface + Reset func() + SectionSize func() int + Sum func(b []byte, length int, span []byte) []byte + Write func(index int, data []byte) type TreePool + Size int v1.8.12 Jul 4, 2018 Changes in this version + const PoolSize + const SegmentCount + func Hash(h *Hasher, span, data []byte) []byte + type BaseHasherFunc func() hash.Hash + type Hasher struct + func New(p *TreePool) *Hasher + func (h *Hasher) BlockSize() int + func (h *Hasher) DataLength() int + func (h *Hasher) Reset() + func (h *Hasher) ResetWithLength(span []byte) + func (h *Hasher) Size() int + func (h *Hasher) Sum(b []byte) (r []byte) + func (h *Hasher) Write(b []byte) (int, error) + type RefHasher struct + func NewRefHasher(hasher BaseHasherFunc, count int) *RefHasher + func (rh *RefHasher) Hash(data []byte) []byte + type TreePool struct + Capacity int + Datalength int + Depth int + SegmentCount int + SegmentSize int + func NewTreePool(hasher BaseHasherFunc, segmentCount, capacity int) *TreePool + func (p *TreePool) Drain(n int)