Versions in this module Expand all Collapse all v0 v0.4.0 Oct 11, 2018 Changes in this version + const PoolSize + 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 BaseHasherFunc func() hash.Hash + type Hasher struct + func New(p *TreePool) *Hasher + func (h *Hasher) BlockSize() int + func (h *Hasher) NewAsyncWriter(double bool) *AsyncHasher + func (h *Hasher) Reset() + func (h *Hasher) ResetWithLength(span []byte) + func (h *Hasher) Size() int + func (h *Hasher) Sum(b []byte) (s []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 SectionWriter interface + Reset func() + SectionSize func() int + Sum func(b []byte, length int, span []byte) []byte + Write func(index int, data []byte) + type TreePool struct + Capacity int + Depth int + SegmentCount int + SegmentSize int + Size int + func NewTreePool(hasher BaseHasherFunc, segmentCount, capacity int) *TreePool + func (p *TreePool) Drain(n int)